harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Okomin (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1749) [classlib][swing] BasicComboBoxUI.removeEditor() throws unspecified NPE
Date Fri, 06 Oct 2006 12:02:26 GMT
[classlib][swing] BasicComboBoxUI.removeEditor() throws unspecified NPE
-----------------------------------------------------------------------

                 Key: HARMONY-1749
                 URL: http://issues.apache.org/jira/browse/HARMONY-1749
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Ilya Okomin
            Priority: Minor


Harmony throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.removeEditor() while
RI does not.
This case relevant to the undefined editor for BasicComboBoxUI instanse.
-------------test.java--------------
import junit.framework.TestCase;
import javax.swing.plaf.basic.*;

public class test extends TestCase {

    public static void main(String[] args) {
        junit.textui.TestRunner.run(test.class);
    }

    public void testRun() throws Exception{
        BasicComboBoxUI cb = new BasicComboBoxUI();
        cb.removeEditor();
    }
}
----------------------------------------
======Output RI======
.
Time: 0.321

OK (1 test)

======Output Harmony======
.E
Time: 0.31
There was 1 error:
1) testRun(test)java.lang.NullPointerException
	at javax.swing.plaf.basic.BasicComboBoxUI.removeEditor(BasicComboBoxUI.java:374)
	at test.testRun(test.java:13)
	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
	at main(test.java:9)

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

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