You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Veawor Liu (JIRA)" <ji...@apache.org> on 2009/03/09 04:03:56 UTC

[jira] Created: (HARMONY-6114) [classlib][awt] Harmony fails to execute the sample code(Composite.java) of the Java Tutorial.

[classlib][awt] Harmony fails to execute the sample code(Composite.java) of the Java Tutorial.
----------------------------------------------------------------------------------------------

                 Key: HARMONY-6114
                 URL: https://issues.apache.org/jira/browse/HARMONY-6114
             Project: Harmony
          Issue Type: Bug
          Components: App-Oriented Bug Reports
    Affects Versions: 5.0M8
         Environment: Operating system: Windows XP, Hardware specifications: Intel Core 2 Duo E6759, 2GB RAM, and NVIDIA GeForce 8600GT
            Reporter: Veawor Liu


Download the source (http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Composite.java) and compile it. Execute C:\Java\harmony-jdk-713673\jre\bin\java.exe -cp . Composite and throw the exception as below. 

Uncaught exception in main:
java.lang.IllegalArgumentException: MinimumLayoutSize: <null>
        at java.awt.GridBagLayout.minimumLayoutSize(GridBagLayout.java:227)
        at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
        at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
        at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
        at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
        at java.awt.BorderLayout.validate(BorderLayout.java:394)
        at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
        at java.awt.Container.getDefaultMinimumSize(Container.java:753)
        at java.awt.Component.minimumSize(Component.java:3291)
        at java.awt.Container.minimumSize(Container.java:741)
        at java.awt.Container.getMinimumSize(Container.java:726)
        at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
        at java.awt.BorderLayout.validate(BorderLayout.java:394)
        at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
        at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
        at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
        at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
        at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
        at java.awt.BorderLayout.validate(BorderLayout.java:394)
        at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:291)
        at java.awt.Container.getDefaultPreferredSize(Container.java:789)
        at java.awt.Component.preferredSize(Component.java:3317)
        at java.awt.Container.preferredSize(Container.java:777)
        at java.awt.Container.getPreferredSize(Container.java:762)
        at java.awt.Window.pack(Window.java:701)
        at Composite.main(Composite.java:151)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-6114) [classlib][awt] Harmony fails to execute the sample code(Composite.java) of the Java Tutorial.

Posted by "Chunrong Lai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chunrong Lai reassigned HARMONY-6114:
-------------------------------------

    Assignee: Chunrong Lai

> [classlib][awt] Harmony fails to execute the sample code(Composite.java) of the Java Tutorial.
> ----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6114
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6114
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>    Affects Versions: 5.0M8
>         Environment: Operating system: Windows XP, Hardware specifications: Intel Core 2 Duo E6759, 2GB RAM, and NVIDIA GeForce 8600GT
>            Reporter: Veawor Liu
>            Assignee: Chunrong Lai
>
> Download the source (http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Composite.java) and compile it. Execute C:\Java\harmony-jdk-713673\jre\bin\java.exe -cp . Composite and throw the exception as below. 
> Uncaught exception in main:
> java.lang.IllegalArgumentException: MinimumLayoutSize: <null>
>         at java.awt.GridBagLayout.minimumLayoutSize(GridBagLayout.java:227)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
>         at java.awt.BorderLayout.validate(BorderLayout.java:394)
>         at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
>         at java.awt.Container.getDefaultMinimumSize(Container.java:753)
>         at java.awt.Component.minimumSize(Component.java:3291)
>         at java.awt.Container.minimumSize(Container.java:741)
>         at java.awt.Container.getMinimumSize(Container.java:726)
>         at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
>         at java.awt.BorderLayout.validate(BorderLayout.java:394)
>         at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
>         at java.awt.BorderLayout.validate(BorderLayout.java:394)
>         at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:291)
>         at java.awt.Container.getDefaultPreferredSize(Container.java:789)
>         at java.awt.Component.preferredSize(Component.java:3317)
>         at java.awt.Container.preferredSize(Container.java:777)
>         at java.awt.Container.getPreferredSize(Container.java:762)
>         at java.awt.Window.pack(Window.java:701)
>         at Composite.main(Composite.java:151)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6114) [classlib][awt] Harmony fails to execute the sample code(Composite.java) of the Java Tutorial.

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680732#action_12680732 ] 

Nathan Beyer commented on HARMONY-6114:
---------------------------------------

If you made the code as follows (add the brackets and indent), I'll give a +1 vote to commit.

if(gbc != null) {
    updateParentInfo(parent, gbc);
}

> [classlib][awt] Harmony fails to execute the sample code(Composite.java) of the Java Tutorial.
> ----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6114
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6114
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>    Affects Versions: 5.0M8
>         Environment: Operating system: Windows XP, Hardware specifications: Intel Core 2 Duo E6759, 2GB RAM, and NVIDIA GeForce 8600GT
>            Reporter: Veawor Liu
>            Assignee: Chunrong Lai
>         Attachments: H6114.patch
>
>
> Download the source (http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Composite.java) and compile it. Execute C:\Java\harmony-jdk-713673\jre\bin\java.exe -cp . Composite and throw the exception as below. 
> Uncaught exception in main:
> java.lang.IllegalArgumentException: MinimumLayoutSize: <null>
>         at java.awt.GridBagLayout.minimumLayoutSize(GridBagLayout.java:227)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
>         at java.awt.BorderLayout.validate(BorderLayout.java:394)
>         at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
>         at java.awt.Container.getDefaultMinimumSize(Container.java:753)
>         at java.awt.Component.minimumSize(Component.java:3291)
>         at java.awt.Container.minimumSize(Container.java:741)
>         at java.awt.Container.getMinimumSize(Container.java:726)
>         at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
>         at java.awt.BorderLayout.validate(BorderLayout.java:394)
>         at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
>         at java.awt.BorderLayout.validate(BorderLayout.java:394)
>         at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:291)
>         at java.awt.Container.getDefaultPreferredSize(Container.java:789)
>         at java.awt.Component.preferredSize(Component.java:3317)
>         at java.awt.Container.preferredSize(Container.java:777)
>         at java.awt.Container.getPreferredSize(Container.java:762)
>         at java.awt.Window.pack(Window.java:701)
>         at Composite.main(Composite.java:151)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6114) [classlib][awt] Harmony fails to execute the sample code(Composite.java) of the Java Tutorial.

Posted by "Chunrong Lai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chunrong Lai updated HARMONY-6114:
----------------------------------

    Attachment: H6114.patch


 Here is the patch. AWT missed a null check there.
 Due to the M9 code frozen I will commit it with supports of more committers or wait after code unfrozen.

> [classlib][awt] Harmony fails to execute the sample code(Composite.java) of the Java Tutorial.
> ----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6114
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6114
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>    Affects Versions: 5.0M8
>         Environment: Operating system: Windows XP, Hardware specifications: Intel Core 2 Duo E6759, 2GB RAM, and NVIDIA GeForce 8600GT
>            Reporter: Veawor Liu
>            Assignee: Chunrong Lai
>         Attachments: H6114.patch
>
>
> Download the source (http://java.sun.com/docs/books/tutorial/2d/advanced/examples/Composite.java) and compile it. Execute C:\Java\harmony-jdk-713673\jre\bin\java.exe -cp . Composite and throw the exception as below. 
> Uncaught exception in main:
> java.lang.IllegalArgumentException: MinimumLayoutSize: <null>
>         at java.awt.GridBagLayout.minimumLayoutSize(GridBagLayout.java:227)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
>         at java.awt.BorderLayout.validate(BorderLayout.java:394)
>         at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
>         at java.awt.Container.getDefaultMinimumSize(Container.java:753)
>         at java.awt.Component.minimumSize(Component.java:3291)
>         at java.awt.Container.minimumSize(Container.java:741)
>         at java.awt.Container.getMinimumSize(Container.java:726)
>         at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
>         at java.awt.BorderLayout.validate(BorderLayout.java:394)
>         at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:273)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:124)
>         at javax.swing.JComponent.getMinimumSize(JComponent.java:442)
>         at java.awt.BorderLayout.validateArrays(BorderLayout.java:435)
>         at java.awt.BorderLayout.validate(BorderLayout.java:394)
>         at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:291)
>         at java.awt.Container.getDefaultPreferredSize(Container.java:789)
>         at java.awt.Component.preferredSize(Component.java:3317)
>         at java.awt.Container.preferredSize(Container.java:777)
>         at java.awt.Container.getPreferredSize(Container.java:762)
>         at java.awt.Window.pack(Window.java:701)
>         at Composite.main(Composite.java:151)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.