Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 42501 invoked from network); 23 Jan 2007 12:44:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2007 12:44:10 -0000 Received: (qmail 64755 invoked by uid 500); 23 Jan 2007 12:44:16 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 64726 invoked by uid 500); 23 Jan 2007 12:44:16 -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 64716 invoked by uid 99); 23 Jan 2007 12:44:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 04:44:16 -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; Tue, 23 Jan 2007 04:44:09 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6BD397142D4 for ; Tue, 23 Jan 2007 04:43:49 -0800 (PST) Message-ID: <7296537.1169556229437.JavaMail.jira@brutus> Date: Tue, 23 Jan 2007 04:43:49 -0800 (PST) From: "Andrey Pavlenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2527) [classlib][awt]Component.paint method should check if passed parameter in null In-Reply-To: <11084028.1165512921114.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466732 ] Andrey Pavlenko commented on HARMONY-2527: ------------------------------------------ Alexei, all test cases from HARMONY-2587 fail because of the same issue in the method java.awt.Container.paintComponentsImpl(). ContainerRTest1.patch already contains the regression test for this method. So, I don't think it's necessary to add all the test cases to ContainerRTest1.patch. > [classlib][awt]Component.paint method should check if passed parameter in null > ------------------------------------------------------------------------------ > > Key: HARMONY-2527 > URL: https://issues.apache.org/jira/browse/HARMONY-2527 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Nikolay Kuznetsov > Assigned To: Alexei Zakharov > Priority: Minor > Attachments: Container1.patch, ContainerRTest1.patch > > > RI implementations of paint methods checks if passed Graphics parameter is null. I've found several bugs[1] in Sun's database indicating activity on adding check to paint methods. In most of the real cases null value was passed because the component was clipped or invisible(and it seems to be OK). > [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4036712 > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4191142 > Attached test passes on RI and throws NPE on harmony implementation. > RI > java test > true > true > true > true > true > true > Harmony: > false > java.lang.NullPointerException > at java.awt.Container.paintComponentsImpl(Container.java) > at java.awt.Container.paint(Container.java:930) > at test.testPaint(test.java:58) > at test.main(test.java:119) > false > java.lang.NullPointerException > at java.awt.Container.paintComponentsImpl(Container.java) > at java.awt.Container.paintComponents(Container.java:977) > at test.testPaintComponents(test.java:70) > at test.main(test.java:122) > false > java.lang.NullPointerException > at java.awt.Container.paintComponentsImpl(Container.java) > at java.awt.Container.paint(Container.java:930) > at java.awt.Container.print(Container.java:318) > at test.testPrint(test.java:82) > at test.main(test.java:123) > false > java.lang.NullPointerException > at java.awt.Container.paintComponentsImpl(Container.java) > at java.awt.Container.paintComponents(Container.java:977) > at java.awt.Container.printComponents(Container.java:968) > at test.testPrintComponents(test.java:94) > at test.main(test.java:124) > false > java.lang.NullPointerException > at java.awt.Container.paintComponentsImpl(Container.java) > at java.awt.Container.paint(Container.java:930) > at java.awt.Component.update(Component.java:3447) > at java.awt.Container.update(Container.java:339) > at test.testUpdate(test.java:106) > at test.main(test.java:125) > false -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.