Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 54046 invoked from network); 11 Dec 2006 14:45:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2006 14:45:43 -0000 Received: (qmail 23264 invoked by uid 500); 11 Dec 2006 14:45:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 23245 invoked by uid 500); 11 Dec 2006 14:45:51 -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 23236 invoked by uid 99); 11 Dec 2006 14:45:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Dec 2006 06:45:50 -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, 11 Dec 2006 06:45:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 702917142D8 for ; Mon, 11 Dec 2006 06:45:22 -0800 (PST) Message-ID: <33396087.1165848322456.JavaMail.jira@brutus> Date: Mon, 11 Dec 2006 06:45:22 -0800 (PST) From: "Andrey Pavlenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2066) [classlib][awt] RenderingHints throws unexpected NPE 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-2066?page=comments#action_12457364 ] Andrey Pavlenko commented on HARMONY-2066: ------------------------------------------ I think the behavior of Harmony is reasonable here. RenderingHints should not contain invalid key/value pairs. RI does not perform validation of data in the constructor and I think it's a bug. > [classlib][awt] RenderingHints throws unexpected NPE > ---------------------------------------------------- > > Key: HARMONY-2066 > URL: http://issues.apache.org/jira/browse/HARMONY-2066 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Denis Kishenko > > ========= Spec ============ > Nothing about exceptions > ============ Test =========== > import java.awt.RenderingHints; > import javax.swing.text.DefaultEditorKit; > public class Test { > public static void main(String args[]) { > RenderingHints localRenderingHints = new RenderingHints( > RenderingHints.KEY_ANTIALIASING, > new DefaultEditorKit()); > System.out.println("passed"); > } > } > ========== RI ============ > passed > ============= Harmony ========== > Uncaught exception in main: > java.lang.IllegalArgumentException > at java.awt.RenderingHints.put(RenderingHints.java:99) > at java.awt.RenderingHints.(RenderingHints.java:79) > at Test.main(Test.java:9) -- 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