harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2768) [classlib][swing] javax.swing.DefaultListCellRenderer.repaint(null) does not throw NPE
Date Wed, 14 Mar 2007 14:34:10 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexei Zakharov updated HARMONY-2768:
-------------------------------------

    Priority: Minor  (was: Major)

> [classlib][swing] javax.swing.DefaultListCellRenderer.repaint(null) does not throw NPE
> --------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2768
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2768
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>            Priority: Minor
>         Attachments: HARMONY-2768.patch.txt
>
>
> RI throws NPE for DefaultListCellRenderer.repaint(null) while Harmony does not.
> There is no mention of this condition in the specification.
> It is compatibility issue.
> import junit.framework.TestCase;
> import javax.swing.*;
> public class test extends TestCase {   
>         public void testcase1() { 
>             DefaultListCellRenderer pi = new javax.swing.DefaultListCellRenderer();
>             pi.repaint(null);
>         }                                                                    
> }
> Output on RI:
> .
> Time: 0,156
> OK (1 test)
> Output on Harmony:
> .E
> Time: 0.344
> There was 1 error:
> 1) testcase1(test)java.lang.NullPointerException
>         at javax.swing.JComponent.repaint(JComponent.java:914)
>         at test.testcase1(test.java:8)
>         at java.lang.reflect.VMReflection.invokeMethod()
> FAILURES!!!
> Tests run: 1,  Failures: 0,  Errors: 1

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