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] Updated: (HARMONY-5299) [classlib][swing] Class javax.swing.plaf.metal.MetalRootPaneTitlePane has problem in initialization
Date Thu, 13 Dec 2007 10:15:47 GMT

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

Linbin Yu updated HARMONY-5299:
-------------------------------

    Description: 
This is 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 extends from BasicInternalFrameTitlePane,

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

Looks like it's a conflict in these class design.

  was:
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.

        Summary: [classlib][swing] Class javax.swing.plaf.metal.MetalRootPaneTitlePane has
problem in initialization  (was: [classlib][swing] Class javax.swing.plaf.metal.MetalRootPaneTitlePane.MetalRootPaneTitlePane
failed to initialize)

> [classlib][swing] Class javax.swing.plaf.metal.MetalRootPaneTitlePane has problem in
initialization
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5299
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5299
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Win32
>            Reporter: Linbin Yu
>
> This is 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 extends from BasicInternalFrameTitlePane,

> Its initialization method is:
>     public MetalRootPaneTitlePane(final JRootPane root) {
>         super(null);
>         ...
>     }
> The super() method will finally invoke:
>     public BasicInternalFrameTitlePane(final JInternalFrame frame) {
>         if (frame == null) {
>             throw new NullPointerException();  
>        ...
>     } 
> Looks like it's a conflict in these 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