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-2886) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager.minimumLayoutSize(null) returns valid result while RI throws NPE
Date Wed, 27 Dec 2006 09:04:21 GMT
[classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager.minimumLayoutSize(null)
returns valid result while RI throws NPE
--------------------------------------------------------------------------------------------------------------------------------------------------------------

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


javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager.minimumLayoutSize(null)
returns valid result while RI throws NPE.

Test for reproducing:
------------- Test.java -------------
import javax.swing.plaf.basic.BasicComboBoxUI;

import junit.framework.TestCase;
import junit.textui.TestRunner;

public class test extends TestCase {

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

    public void testRun() {
        BasicComboBoxUI lb = new BasicComboBoxUI();
        BasicComboBoxUI.ComboBoxLayoutManager b = lb.new ComboBoxLayoutManager();
        try {
            b.minimumLayoutSize(null);
            fail("NPE expected");
        } catch (NullPointerException e) {
            // expected
        }
    }

}
------------------------------
Output on RI
==========
.
Time: 0.281

OK (1 test)

Output on Harmony:
================
.F
Time: 4.979
There was 1 failure:
1) testRun(test)junit.framework.AssertionFailedError: NPE expected
	at test.testRun(test.java:17)
	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
	at test.main(test.java:9)

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