You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2007/01/15 12:55:27 UTC
[jira] Resolved: (HARMONY-2898) [classlib][swing]
javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValueBackground throws
unspecified NPE on RI and doesn't on Harmony
[ https://issues.apache.org/jira/browse/HARMONY-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess resolved HARMONY-2898.
-----------------------------------
Resolution: Fixed
Assignee: Mark Hindess
Applied patches in r496287. Please confirm they have been applied as expected.
> [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
> Assigned To: Mark Hindess
> 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