You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2007/01/14 10:17:27 UTC

[jira] Resolved: (HARMONY-2666) [classlib][swing] javax.swing.plaf.metal.BasicInternalFrameTitlePane(null) doesn't throw unspecified NPE while RI does

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

Mark Hindess resolved HARMONY-2666.
-----------------------------------

    Resolution: Fixed
      Assignee: Mark Hindess

Applied patches in r496043.  Please confirm they have been applied as expected.

> [classlib][swing] javax.swing.plaf.metal.BasicInternalFrameTitlePane(null) doesn't throw unspecified NPE while RI does
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2666
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2666
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Assigned To: Mark Hindess
>            Priority: Minor
>         Attachments: Harmony-2666-BasicInternalFrameTitlePane.patch, Harmony-2666-BasicInternalFrameTitlePaneTest.patch
>
>
> There is no mention of any exception in the specification.
> Harmony does not throw unspecified NPE for MetalInternalFrameTitlePane(null)
> while RI does.
> Use the following code to reproduce:
> import javax.swing.JInternalFrame;
> import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public static void main(String[] args) {                                
>         try {   
>             new BasicInternalFrameTitlePane((JInternalFrame) null);     
>         } catch (Exception e) { 
>             e.printStackTrace();
>         }                                                                       
>     }  
> }
> Inconsistency is that in Harmony's implementation of this constructor 
> installTitlePane() is not called when null parameter is passed in

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