[ https://issues.apache.org/jira/browse/HARMONY-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473698
]
Sergey Krivenko commented on HARMONY-2666:
------------------------------------------
I disagree with the previous comment. Despite throwing NPE for MetalInternalFrameTitlePane(null)
on RI it works just fine with L&F decorated windows. So there must be a problem there.
> [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.
-
You can reply to this email to add a comment to the issue online.
|