harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Aliev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2428) javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null
Date Mon, 04 Dec 2006 13:21:21 GMT
javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified
NPE if locale==null
------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2428
                 URL: http://issues.apache.org/jira/browse/HARMONY-2428
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Artem Aliev


javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not
throw unspecified NPE if locale==null.
RI throws NullPointerException.

Test for reproducing:
import javax.accessibility.*;

public class test extends TestCase {      
    public void test1 () {         
       try {             
           AccessibleRelation obj= new
AccessibleRelation(AccessibleRelation.MEMBER_OF);
           obj.toDisplayString(null);   
           fail("NullPointerException should be thrown");      
         } catch (NullPointerException e) {
           //expected
       } 
    }       
}

Output on Sun 1.5
=================
Time: 0,015

OK (1 test)

Output on Harmony:
==================
.F
Time: 0.094
There was 1 failure:
1) test1(test)junit.framework.AssertionFailedError: NullPointerException should
be thrown
        at test.test1(test.java:9)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

FAILURES!!!
Tests run: 1,  Failures: 1,  Errors: 0


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