You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/01/09 19:00:27 UTC

[jira] Closed: (HARMONY-2426) [classlib][swing] JComboBox().setEditor() throws unspecified NPE while RI does not

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

Alexei Zakharov closed HARMONY-2426.
------------------------------------

    Resolution: Cannot Reproduce

Verified. Closed as cannot reproduce.

> [classlib][swing] JComboBox().setEditor() throws unspecified NPE while RI does not
> ----------------------------------------------------------------------------------
>
>                 Key: HARMONY-2426
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2426
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>            Priority: Minor
>
> Trere is no mention of any exception in the specificarion.
> javax.swing.JComboBox().setEditor() throws unspecified NPE while RI
> does not.
> Test for reprodicing:
> import javax.swing.*;
> import javax.swing.plaf.metal.MetalComboBoxEditor;
> public class Test {          
>     public static void main(String args[]) { 
>         new JComboBox().setEditor(new MetalComboBoxEditor());
>         System.out.println("PASSED");
>     } 
> }
> Output on Sun 1.5
> =================
> PASSED
> Output on Harmony:
> ==================
> java.lang.NullPointerException
>         at
> javax.swing.plaf.basic.BasicComboBoxUI.unconfigureEditor(BasicComboBoxUI.java:663)
>         at
> javax.swing.plaf.metal.MetalComboBoxUI.unconfigureEditor(MetalComboBoxUI.java:112)
>         at
> javax.swing.plaf.basic.BasicComboBoxUI.removeEditor(BasicComboBoxUI.java:372)
>         at
> javax.swing.plaf.basic.BasicComboBoxUI$PropertyChangeHandler.propertyChange(BasicComboBoxUI.java:196)
>         at
> javax.swing.plaf.metal.MetalComboBoxUI$MetalPropertyChangeListener.propertyChange(MetalComboBoxUI.java:81)
>         at
> java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:407)
>         at
> java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:73)
>         at java.awt.Component.firePropertyChangeImpl(Component.java:1667)
>         at java.awt.Component.firePropertyChange(Component.java:1679)
>         at javax.swing.JComboBox.setEditor(JComboBox.java:280)
>         at Test.main(Test.java:6)

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