You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ilya Okomin (JIRA)" <ji...@apache.org> on 2006/09/27 13:20:50 UTC
[jira] Created: (HARMONY-1605) [classlib][awt]Compatibility:
java.awt.Window has null default Font on RI while it hasn't on Harmony
[classlib][awt]Compatibility: java.awt.Window has null default Font on RI while it hasn't on Harmony
----------------------------------------------------------------------------------------------------
Key: HARMONY-1605
URL: http://issues.apache.org/jira/browse/HARMONY-1605
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Ilya Okomin
Priority: Minor
If no Font set to java.awt.Window object RI returns null while Harmony returns instanse of Font with default parameters.
Check the output of the test case:
--------------test.java--------------
import java.awt.*;
public class test{
public static void main(String[] args) {
Window w = new Window(new Frame());
Font f = w.getFont();
System.out.println("Window default font: " + f);
}
}
----------------------------------------
====== Output RI =======
Window default font : null
====== Output Harmony ======
Window default font : java.awt.Font[family=Default,name=dialog,style=plain,size=12]
--
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-1605) [classlib][awt]Compatibility:
java.awt.Window has null default Font on RI while it hasn't on Harmony
Posted by "Ilya Okomin (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1605?page=all ]
Ilya Okomin updated HARMONY-1605:
---------------------------------
Attachment: Harmony-1605.patch
Harmony-1605-test.patch
Please try this fix and unit test.
> [classlib][awt]Compatibility: java.awt.Window has null default Font on RI while it hasn't on Harmony
> ----------------------------------------------------------------------------------------------------
>
> Key: HARMONY-1605
> URL: http://issues.apache.org/jira/browse/HARMONY-1605
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Ilya Okomin
> Priority: Minor
> Attachments: Harmony-1605-test.patch, Harmony-1605.patch
>
>
> If no Font set to java.awt.Window object RI returns null while Harmony returns instanse of Font with default parameters.
> Check the output of the test case:
> --------------test.java--------------
> import java.awt.*;
> public class test{
> public static void main(String[] args) {
> Window w = new Window(new Frame());
> Font f = w.getFont();
> System.out.println("Window default font: " + f);
> }
> }
> ----------------------------------------
> ====== Output RI =======
> Window default font : null
> ====== Output Harmony ======
> Window default font : java.awt.Font[family=Default,name=dialog,style=plain,size=12]
--
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