harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2764) [classlib][swing] javax.swing.plaf.basic.BasicButtonListener.processMouseEvent() does not throw unspecified NPE
Date Wed, 14 Mar 2007 14:34:11 GMT

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

Alexei Zakharov updated HARMONY-2764:
-------------------------------------

    Priority: Minor  (was: Major)

> [classlib][swing] javax.swing.plaf.basic.BasicButtonListener.processMouseEvent() does
not throw unspecified NPE
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2764
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2764
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>            Priority: Minor
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message