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] Commented: (HARMONY-2426) [classlib][swing] JComboBox().setEditor() throws unspecified NPE while RI does not
Date Sun, 07 Jan 2007 19:58:27 GMT

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

Vasily Zakharov commented on HARMONY-2426:
------------------------------------------

I couldn't reproduce the problem.
The test passes on both IBM VM and DRL VM.
I suggest closing this issue 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

        

Mime
View raw message