harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander D Shipilov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2497) [classlib][awt] GridBagConstraints(,,,,,,,,null,,) throws unspecified NPE while RI does not
Date Mon, 25 Dec 2006 15:06:24 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2497?page=all ]

Alexander D Shipilov updated HARMONY-2497:
------------------------------------------

    Attachment: GridBagConstraints2497.patch

Patch with fix

> [classlib][awt] GridBagConstraints(,,,,,,,,null,,) throws unspecified NPE while RI does
not
> -------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2497
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2497
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: GridBagConstraints2497.patch
>
>
> Trere is no mention of any exception in the specificarion. java.awt.GridBagConstraints(,,,,,,,,null,,)
throws unspecified NPE while RI does not.
> =============== Test ============
> import junit.framework.TestCase;
> import java.awt.*;
> public class test extends TestCase {     
>     public void test1 () { 
>        new GridBagConstraints(1,1,1,1,7.9,7.9,1,1,null,1,1);         
>     }   
> }
> Output on Sun 1.5
> =================
> Time: 0,016
> OK (1 test)
> Output on Harmony:
> ==================
> .java.lang.NullPointerException
>         at test.test1(test.java:12)
>         at java.lang.reflect.VMReflection.invokeMethod()
>         at java.lang.reflect.Method.invoke()
>         at junit.framework.TestCase.runTest(TestCase.java:154)
>         at junit.framework.TestCase.runBare(TestCase.java:127)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at junit.textui.TestRunner.doRun(TestRunner.java:115)
>         at junit.textui.TestRunner.start(TestRunner.java:172)
> Time: 0.063

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message