harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3443) [classlib][awt][netbeans] Container.paint() throws NPE
Date Tue, 10 Apr 2007 02:30:32 GMT

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

Stepan Mishura commented on HARMONY-3443:
-----------------------------------------

What kind of proof do you need?

>From my point the situation was the following: before the patch was reverted CC status
was down and notification log contained errors (as I posted above). After I reverted the patch
all tests passed under CC. Also I was able to reproduce the failure by hands and the patch
reversion worked for me. (BTW, CC runs on SLES9). 

For me the issue looks not trivial and very intresting for investigation. So we have for:
- SLES 10 DRL VM: the test fails without applying the patch... 
- SLES 9 DRL VM: the test fails with the patch and passes without
- Fedora ia32 IBM VME: the failure is not reproducible.

Any ideas what the root cause is?

Thanks,
Stepan.

> [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