You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Artem Aliev (JIRA)" <ji...@apache.org> on 2006/12/04 14:21:21 UTC

[jira] Created: (HARMONY-2428) javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null

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

        

Re: [jira] Created: (HARMONY-2428) javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null

Posted by Paulex Yang <pa...@gmail.com>.
Artem,

Thank you to find and raise these issues on Harmony, but for the 
convenience of others to filt, would you please add 
[classlib][modulename] as prefix of issue name? And probably not 
necessary, but please be reminded that not all "java.util.*.*" and 
"java.lang.*.*" are part of LUNI module, for example, java.util.logging 
is in logging module, java.lang.instrument is instrument, 
java.util.zip/jar is archive, etc. I've updated the issues you raised 
from 2418-2429, 2469-2471, and I may miss others.

And because we have users focus on DRLVM or IBM VME, so would you also 
mentioned the VM you used on the environment field?

Artem Aliev (JIRA) wrote:
> 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
>
>
>   


-- 
Paulex Yang
China Software Development Lab
IBM



[jira] Commented: (HARMONY-2428) [classlib][accessibility]javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null

Posted by "Kalpak Gadre (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465372 ] 

Kalpak Gadre commented on HARMONY-2428:
---------------------------------------

Hope my patch will help. Let me know if we are looking something more
than this and I am stupid enough to miss that. Thanks! :)

> [classlib][accessibility]javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2428
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2428
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Attachments: HARMONY-2428.patch
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2428) [classlib][accessibility]javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2428?page=all ]

Paulex Yang updated HARMONY-2428:
---------------------------------

    Summary: [classlib][accessibility]javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null  (was: javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null)

> [classlib][accessibility]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

        

[jira] Updated: (HARMONY-2428) [classlib][accessibility]javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null

Posted by "Kalpak Gadre (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kalpak Gadre updated HARMONY-2428:
----------------------------------

    Attachment: HARMONY-2428.patch

> [classlib][accessibility]javax.accessibility.AccessibleBundle.toDisplayString(Locale locale) does not throw unspecified NPE if locale==null
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2428
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2428
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Attachments: HARMONY-2428.patch
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira