You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitry A. Durnev (JIRA)" <ji...@apache.org> on 2006/08/29 16:30:23 UTC

[jira] Created: (HARMONY-1339) java.awt.Toolkit.getScreenInsets() always returns null

java.awt.Toolkit.getScreenInsets() always returns null
------------------------------------------------------

                 Key: HARMONY-1339
                 URL: http://issues.apache.org/jira/browse/HARMONY-1339
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Windows/x86
            Reporter: Dmitry A. Durnev
            Priority: Minor


Run the following test:

public class Test {
    public static void main(String[] args) {
        System.out.println(Toolkit.getDefaultToolkit().
                           getScreenInsets(new Frame().getGraphicsConfiguration()));
    }

}

On Harmony null is printed, while RI returns java.awt.Insets instance.

This issue breaks some applications.

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

        

[jira] Updated: (HARMONY-1339) java.awt.Toolkit.getScreenInsets() always returns null

Posted by "Dmitry A. Durnev (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1339?page=all ]

Dmitry A. Durnev updated HARMONY-1339:
--------------------------------------

    Attachment: awt_linux_exports.patch

Did you try to run anything in addition to tests? It shouldn't be working...Please try the attached patch, it should fix some missing exports for linux awt/2D native libraries(you have to rebuild them).

> java.awt.Toolkit.getScreenInsets() always returns null
> ------------------------------------------------------
>
>                 Key: HARMONY-1339
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1339
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/x86
>            Reporter: Dmitry A. Durnev
>         Assigned To: Mark Hindess
>            Priority: Minor
>         Attachments: 1339-Toolkit.patch, 1339-Toolkit_tests.patch, awt_linux_exports.patch
>
>
> Run the following test:
> public class Test {
>     public static void main(String[] args) {
>         System.out.println(Toolkit.getDefaultToolkit().
>                            getScreenInsets(new Frame().getGraphicsConfiguration()));
>     }
> }
> On Harmony null is printed, while RI returns java.awt.Insets instance.
> This issue breaks some applications.

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

        

[jira] Updated: (HARMONY-1339) java.awt.Toolkit.getScreenInsets() always returns null

Posted by "Dmitry A. Durnev (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1339?page=all ]

Dmitry A. Durnev updated HARMONY-1339:
--------------------------------------

    Attachment: 1339-Toolkit.patch
                1339-Toolkit_tests.patch

Attached fix + test. Apply from modules/awt dir.
This is only quick(temporary) fix.

> java.awt.Toolkit.getScreenInsets() always returns null
> ------------------------------------------------------
>
>                 Key: HARMONY-1339
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1339
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/x86
>            Reporter: Dmitry A. Durnev
>            Priority: Minor
>         Attachments: 1339-Toolkit.patch, 1339-Toolkit_tests.patch
>
>
> Run the following test:
> public class Test {
>     public static void main(String[] args) {
>         System.out.println(Toolkit.getDefaultToolkit().
>                            getScreenInsets(new Frame().getGraphicsConfiguration()));
>     }
> }
> On Harmony null is printed, while RI returns java.awt.Insets instance.
> This issue breaks some applications.

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

        

[jira] Resolved: (HARMONY-1339) java.awt.Toolkit.getScreenInsets() always returns null

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1339?page=all ]

Mark Hindess resolved HARMONY-1339.
-----------------------------------

    Resolution: Fixed

Hmm... indeed. I discovered after adding my comment that awt stuff was already broken.  Thanks for the fix!

I've applied your patches in r446592.  Please confirm they've been applied as expected.


> java.awt.Toolkit.getScreenInsets() always returns null
> ------------------------------------------------------
>
>                 Key: HARMONY-1339
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1339
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/x86
>            Reporter: Dmitry A. Durnev
>         Assigned To: Mark Hindess
>            Priority: Minor
>         Attachments: 1339-Toolkit.patch, 1339-Toolkit_tests.patch, awt_linux_exports.patch
>
>
> Run the following test:
> public class Test {
>     public static void main(String[] args) {
>         System.out.println(Toolkit.getDefaultToolkit().
>                            getScreenInsets(new Frame().getGraphicsConfiguration()));
>     }
> }
> On Harmony null is printed, while RI returns java.awt.Insets instance.
> This issue breaks some applications.

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

        

[jira] Closed: (HARMONY-1339) java.awt.Toolkit.getScreenInsets() always returns null

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1339?page=all ]

Mark Hindess closed HARMONY-1339.
---------------------------------


Verified by Dmitry.



> java.awt.Toolkit.getScreenInsets() always returns null
> ------------------------------------------------------
>
>                 Key: HARMONY-1339
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1339
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/x86
>            Reporter: Dmitry A. Durnev
>         Assigned To: Mark Hindess
>            Priority: Minor
>         Attachments: 1339-Toolkit.patch, 1339-Toolkit_tests.patch, awt_linux_exports.patch
>
>
> Run the following test:
> public class Test {
>     public static void main(String[] args) {
>         System.out.println(Toolkit.getDefaultToolkit().
>                            getScreenInsets(new Frame().getGraphicsConfiguration()));
>     }
> }
> On Harmony null is printed, while RI returns java.awt.Insets instance.
> This issue breaks some applications.

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

        

[jira] Assigned: (HARMONY-1339) java.awt.Toolkit.getScreenInsets() always returns null

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1339?page=all ]

Mark Hindess reassigned HARMONY-1339:
-------------------------------------

    Assignee: Mark Hindess

> java.awt.Toolkit.getScreenInsets() always returns null
> ------------------------------------------------------
>
>                 Key: HARMONY-1339
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1339
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/x86
>            Reporter: Dmitry A. Durnev
>         Assigned To: Mark Hindess
>            Priority: Minor
>         Attachments: 1339-Toolkit.patch, 1339-Toolkit_tests.patch
>
>
> Run the following test:
> public class Test {
>     public static void main(String[] args) {
>         System.out.println(Toolkit.getDefaultToolkit().
>                            getScreenInsets(new Frame().getGraphicsConfiguration()));
>     }
> }
> On Harmony null is printed, while RI returns java.awt.Insets instance.
> This issue breaks some applications.

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

        

[jira] Commented: (HARMONY-1339) java.awt.Toolkit.getScreenInsets() always returns null

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1339?page=comments#action_12434640 ] 
            
Mark Hindess commented on HARMONY-1339:
---------------------------------------

If I apply these patches and run the test (on Linux) I get the following test error:

  java.lang.UnsatisfiedLinkError: org/apache/harmony/awt/nativebridge/linux
/X11.XmuLookupStandardColormap(JIJIJII)I at
org.apache.harmony.awt.gl.linux.XGraphicsConfiguration.obtainRGBColorMap
(XGraphicsConfiguration.java:73) at
org.apache.harmony.awt.gl.linux.XGraphicsConfiguration.<init>
(XGraphicsConfiguration.java:49) at
org.apache.harmony.awt.gl.linux.XGraphicsDevice.createConfigs
(XGraphicsDevice.java:140) at
org.apache.harmony.awt.gl.linux.XGraphicsDevice.getConfigs
(XGraphicsDevice.java:74) at
org.apache.harmony.awt.gl.linux.XGraphicsDevice.getDefaultConfiguration
(XGraphicsDevice.java:166) at java.awt.Window.getGraphicsConfiguration
(Window.java:1170) at java.awt.Window.<init>(Window.java:156) at
java.awt.Frame.<init>(Frame.java:14) at java.awt.Frame.<init>
(Frame.java:116) at java.awt.Frame.<init>(Frame.java:125) at
java.awt.ToolkitRTest.testGetScreenInsets(ToolkitRTest.java:29) at
java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)

If I revert and re-run the tests pass.


> java.awt.Toolkit.getScreenInsets() always returns null
> ------------------------------------------------------
>
>                 Key: HARMONY-1339
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1339
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/x86
>            Reporter: Dmitry A. Durnev
>         Assigned To: Mark Hindess
>            Priority: Minor
>         Attachments: 1339-Toolkit.patch, 1339-Toolkit_tests.patch
>
>
> Run the following test:
> public class Test {
>     public static void main(String[] args) {
>         System.out.println(Toolkit.getDefaultToolkit().
>                            getScreenInsets(new Frame().getGraphicsConfiguration()));
>     }
> }
> On Harmony null is printed, while RI returns java.awt.Insets instance.
> This issue breaks some applications.

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

        

[jira] Commented: (HARMONY-1339) java.awt.Toolkit.getScreenInsets() always returns null

Posted by "Dmitry A. Durnev (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1339?page=comments#action_12434956 ] 
            
Dmitry A. Durnev commented on HARMONY-1339:
-------------------------------------------

Yes, they've been applied correctly.

> java.awt.Toolkit.getScreenInsets() always returns null
> ------------------------------------------------------
>
>                 Key: HARMONY-1339
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1339
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows/x86
>            Reporter: Dmitry A. Durnev
>         Assigned To: Mark Hindess
>            Priority: Minor
>         Attachments: 1339-Toolkit.patch, 1339-Toolkit_tests.patch, awt_linux_exports.patch
>
>
> Run the following test:
> public class Test {
>     public static void main(String[] args) {
>         System.out.println(Toolkit.getDefaultToolkit().
>                            getScreenInsets(new Frame().getGraphicsConfiguration()));
>     }
> }
> On Harmony null is printed, while RI returns java.awt.Insets instance.
> This issue breaks some applications.

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