harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3443) [classlib][awt][netbeans] Container.paint() throws NPE
Date Fri, 13 Apr 2007 08:18:16 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488615
] 

Andrey Pavlenko commented on HARMONY-3443:
------------------------------------------

Stepan, I can reproduce the failures without applying the patch on 32-bit SLES9, SLES10 and
Debian Linuxes. Moreover, I'm not the only person who can do that, see the discussion in the
dev-list. http://mail-archives.apache.org/mod_mbox/harmony-dev/200704.mbox/%3cf944d83d0704030412h4ccfac97p3ec06bcde3726140@mail.gmail.com%3e

I'll try to fix the issue, but I don't think it's caused by this patch.


> [classlib][awt][netbeans] Container.paint() throws NPE
> ------------------------------------------------------
>
>                 Key: HARMONY-3443
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3443
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Assigned To: Alexey Petrenko
>         Attachments: HARMONY-3443-Container.patch, HARMONY-3443-Container.patch, HARMONY-3443-ContainerRTest.patch,
HARMONY-3443-ContainerRTest.patch, Test.java
>
>
> Container.paint(Graphics) throws NullPointerException if the container contains any components
and the specified Graphics.getClip() call returns null.
> The attached test demonstrates the problem.
> Output on RI:
> SUCCESS
> Output on Harmony:
> Exception in thread "main" java.lang.NullPointerException
>         at java.awt.Container.paintComponentsImpl(Container.java:12)
>         at java.awt.Container.paint(Container.java:936)
>         at Test.main(Test.java:9)
> The reason for this problem is paintComponentsImpl() method executes the following line:
> if (!clip.intersects(comp.getBounds())) {
> without checking if clip is not null. I'm not sure how should this be fixed.
> This issue was detected while trying to run Netbeans on Harmony.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message