harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2764) [classlib][swing] javax.swing.plaf.basic.BasicButtonListener.processMouseEvent() does not throw unspecified NPE
Date Mon, 18 Dec 2006 10:27:21 GMT
[classlib][swing] javax.swing.plaf.basic.BasicButtonListener.processMouseEvent() does not throw
unspecified NPE
---------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2764
                 URL: http://issues.apache.org/jira/browse/HARMONY-2764
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko


There is no mention of any exception in the specification.
RI throws unspecified NPE for processMouseEvent if MouseEvent == null while Harmony does not.

import javax.swing.plaf.basic.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.*;

public class test {
    public static void main(String[] args) {                        
        try {   
            BasicCheckBoxMenuItemUI mi = new BasicCheckBoxMenuItemUI();
            mi.processMouseEvent(new JMenuItem(), null, new MenuElement[] {},
new MenuSelectionManager());      
        } catch (Exception e) { 
            e.printStackTrace();
        }                                               
     }
}                                                    
Output on RI:
java.lang.NullPointerException
        at
javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.processMouseEvent(BasicCheckBoxMenuItemUI.java:37)
        at test.main(test.java:11)

Output on Harmony +j9:
(no output)


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

        

Mime
View raw message