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] Resolved: (HARMONY-2498) [classlib][awt] java.awt.Tollkit.getImage(null) throws NPE while RI doesn't
Date Mon, 29 Jan 2007 17:10:49 GMT

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

Alexei Zakharov resolved HARMONY-2498.
--------------------------------------

    Resolution: Fixed
      Assignee: Alexei Zakharov

Thanks guys. The patch was applied at the revision 501111. Please verify that it was applied
as expected.

> [classlib][awt] java.awt.Tollkit.getImage(null) throws NPE while RI doesn't
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-2498
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2498
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: Harmony-2498-Toolkit.patch, Harmony-2498-ToolkitTest.patch
>
>
> Test case:
> --------------
> import java.awt.Toolkit;
> import java.net.URL;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         Toolkit tk = Toolkit.getDefaultToolkit();
>         assertNotNull(tk.getImage((String) null));
>     }
>     public void testcase2() {
>         Toolkit tk = Toolkit.getDefaultToolkit();
>         assertNotNull(tk.getImage((URL) null));
>     }
> }
> RI output:
> -------------
> ..
> Time: 1,272
> OK (2 tests)
> Harmony output:
> -------------
> .E.E
> Time: 0.591
> There were 2 errors:
> 1) testcase1(TheTest)java.lang.NullPointerException
> 	at java.util.Hashtable.get(Hashtable.java)
> 	at java.awt.ToolkitImpl.getImage(ToolkitImpl.java:412)
> 	at java.awt.ToolkitImpl.getImage(ToolkitImpl.java)
> 	at TheTest.testcase1(TheTest.java:13)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> 	at TheTest.main(TheTest.java:9)
> 2) testcase2(TheTest)java.lang.NullPointerException
> 	at java.util.Hashtable.get(Hashtable.java)
> 	at java.awt.ToolkitImpl.getImage(ToolkitImpl.java:431)
> 	at java.awt.ToolkitImpl.getImage(ToolkitImpl.java)
> 	at TheTest.testcase2(TheTest.java:18)
> 	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> 	at TheTest.main(TheTest.java:9)
> FAILURES!!!
> Tests run: 2,  Failures: 0,  Errors: 2

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