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-2898) [classlib][swing] javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValueBackground throws unspecified NPE on RI and doesn't on Harmony
Date Wed, 27 Dec 2006 12:53:21 GMT
[classlib][swing] javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValueBackground throws
unspecified NPE on RI and doesn't on Harmony
----------------------------------------------------------------------------------------------------------------------------------------

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


javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValueBackground throws unspecified NPE
on RI and doesn't on Harmony.
See test case to reproduce, it passes on RI and fails on Harmony:
------------ test.java ----------
import java.awt.image.BufferedImage;

import javax.swing.plaf.basic.BasicComboBoxUI;
import javax.swing.plaf.basic.BasicTextUI;

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 test1Run() {
        BasicComboBoxUI localBasicComboBoxUI = new BasicComboBoxUI();
        try {
            localBasicComboBoxUI.paintCurrentValueBackground(new BufferedImage(
                    6, 6, BufferedImage.TYPE_4BYTE_ABGR).createGraphics(),
                    new BasicTextUI.BasicCaret(), true);
            fail("NullPointerException expected");
        } catch (NullPointerException e) {
            // expected
        }
    }

}
-----------------------------------

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