You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ilya Okomin (JIRA)" <ji...@apache.org> on 2006/10/06 14:14:20 UTC
[jira] Updated: (HARMONY-1749) [classlib][swing]
BasicComboBoxUI.removeEditor() throws unspecified NPE
[ http://issues.apache.org/jira/browse/HARMONY-1749?page=all ]
Ilya Okomin updated HARMONY-1749:
---------------------------------
Attachment: Harmony-1749-test.patch
Unit test
Note: BasicComboBoxUITest tests are excluded at the moment.
> [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
> Attachments: Harmony-1749-test.patch
>
>
> 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