harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2782) [classlib][swing] j.s.text.DefaultCaret.install doesn't throw NPE whereas RI does
Date Mon, 18 Dec 2006 16:09:21 GMT
[classlib][swing] j.s.text.DefaultCaret.install doesn't throw NPE whereas RI does
---------------------------------------------------------------------------------

                 Key: HARMONY-2782
                 URL: http://issues.apache.org/jira/browse/HARMONY-2782
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexey A. Ivanov
            Priority: Minor


javax.swing.text.DefaultCaret.install(null) works silently on Harmony whereas RI throws NullPointerException.

======= Code to Reproduce =======
import javax.swing.text.DefaultCaret;

public class Test {
    public static void main(String[] args) {
        new DefaultCaret().install(null);
        System.err.println("silent");
    }
}
======== end of code ======


------- Harmony -------
silent
------- end -------

------- RI -------
java.lang.NullPointerException
	at javax.swing.text.DefaultCaret.install(DefaultCaret.java:659)
	at Test.main(Test.java:5)
------- end -------

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