Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 94771 invoked from network); 18 Dec 2006 15:17:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2006 15:17:07 -0000 Received: (qmail 4719 invoked by uid 500); 18 Dec 2006 15:16:55 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 4694 invoked by uid 500); 18 Dec 2006 15:16:55 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 4600 invoked by uid 99); 18 Dec 2006 15:16:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 07:16:54 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 07:16:46 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 16436714289 for ; Mon, 18 Dec 2006 07:16:26 -0800 (PST) Message-ID: <25227737.1166454986088.JavaMail.jira@brutus> Date: Mon, 18 Dec 2006 07:16:26 -0800 (PST) From: "Ilya Okomin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-1629) [classlib][awt]Compatibility: java.awt.image.LookupOp constructor for null LookupTable parameter throws NPE on RI while it doesn't on Harmony. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-1629?page=comments#action_12459375 ] Ilya Okomin commented on HARMONY-1629: -------------------------------------- Thanks, patch applied as expected. > [classlib][awt]Compatibility: java.awt.image.LookupOp constructor for null LookupTable parameter throws NPE on RI while it doesn't on Harmony. > ---------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1629 > URL: http://issues.apache.org/jira/browse/HARMONY-1629 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Ilya Okomin > Assigned To: Alexey Petrenko > Priority: Minor > Attachments: Harmony-1629-test.patch, Harmony-1629.patch > > > java.awt.image.LookupOp(LookupTable lookup, RenderingHints hints) constructor for null LookupTable parameter throws NPE on RI while it doesn't on Harmony. NPE is unspecified in the spec, so it's a compatibility issue. > Test to reproduce: > ---------test.java----------- > import java.awt.*; > import java.awt.image.*; > public class test{ > public static void main(String[] args) { > RenderingHints localRenderingHints = new RenderingHints(null); > try { > LookupOp returnValue = new LookupOp(null, localRenderingHints); > System.out.println("Fail: NullPointerException expected!"); > } catch (NullPointerException npe) { > System.out.println("Success: " + npe + " was thrown!"); > } > } > } > --------------------------------------- > ====== Output RI ======= > Success: java.lang.NullPointerException was thrown! > ====== Output Harmony ====== > Fail: NullPointerException expected! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira