harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2898) [classlib][swing] javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValueBackground throws unspecified NPE on RI and doesn't on Harmony
Date Mon, 08 Jan 2007 01:35:27 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vasily Zakharov updated HARMONY-2898:
-------------------------------------

    Attachment: Harmony-2898-Make.patch

> [classlib][swing] javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValueBackground
throws unspecified NPE on RI and doesn't on Harmony
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2898
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2898
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-2898-Make.patch, Harmony-2898-Test.patch, Harmony-2898.patch
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message