harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linbin Yu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5299) [classlib][swing] Class javax.swing.plaf.metal.MetalRootPaneTitlePane.MetalRootPaneTitlePane failed to initialize
Date Thu, 13 Dec 2007 10:05:43 GMT
[classlib][swing] Class javax.swing.plaf.metal.MetalRootPaneTitlePane.MetalRootPaneTitlePane
failed to initialize
-----------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-5299
                 URL: https://issues.apache.org/jira/browse/HARMONY-5299
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Win32
            Reporter: Linbin Yu


Reproducer:

import javax.swing.JFrame;

public class demo {
    public static void main(String[] args) {
    	JFrame.setDefaultLookAndFeelDecorated(true);
	new JFrame();
	System.out.println("finished.");
    }	
}

It finally creates a MetalRootPaneTitlePane, which finally extends from BasicInternalFrameTitlePane,

Its initialization methods:
    public MetalRootPaneTitlePane(final JRootPane root) {
        super(null);
        ...
    }
super() method will finally invoke:
    public BasicInternalFrameTitlePane(final JInternalFrame frame) {
        if (frame == null) {
            throw new NullPointerException();  
       ...
    } 

Looks like it's a conflict in class design.

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