harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-2426) [classlib][swing] JComboBox().setEditor() throws unspecified NPE while RI does not
Date Thu, 29 Nov 2007 13:39:43 GMT

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

Alexey Petrenko reassigned HARMONY-2426:
----------------------------------------

    Assignee: Alexei Zakharov

> [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
>            Assignee: Alexei Zakharov
>            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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message