[swing] JComboBox().setEditor() throws unspecified NPE while RI does not
------------------------------------------------------------------------
Key: HARMONY-2426
URL: http://issues.apache.org/jira/browse/HARMONY-2426
Project: Harmony
Issue Type: Bug
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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|