harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Simbirtsev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2666) [classlib][swing] javax.swing.plaf.metal.BasicInternalFrameTitlePane(null) doesn't throw unspecified NPE while RI does
Date Wed, 13 Dec 2006 12:15:21 GMT
[classlib][swing] javax.swing.plaf.metal.BasicInternalFrameTitlePane(null) doesn't throw unspecified
NPE while RI does
----------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2666
                 URL: http://issues.apache.org/jira/browse/HARMONY-2666
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexander Simbirtsev
            Priority: Minor


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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message