harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (HARMONY-1605) [classlib][awt]Compatibility: java.awt.Window has null default Font on RI while it hasn't on Harmony
Date Wed, 14 Feb 2007 05:06:05 GMT

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

Stepan Mishura reopened HARMONY-1605:
-------------------------------------


Hi Alexey and Ilya,

I've rolled back the patch. It caused regression on Linux (CC failed on SLES9 x86 and x86_64)
with:

Test: testMouseEnterExit
Class: java.awt.ComponentTest
junit.framework.AssertionFailedError 
    at java.awt.ComponentTest.testMouseEnterExit(ComponentTest.java:503) 
    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

Test: testGetMousePosition
Class: java.awt.ComponentTest
junit.framework.AssertionFailedError: expected:<java.awt.Point[x=10,y=10]> but was:<null>

    at java.awt.ComponentTest.testGetMousePosition(ComponentTest.java:1357) 
   at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)

Could you have a look? Also reading through JIRA's comments it is hard to understand why the
test was removed from exclude list.

Thanks,
Stepan.

> [classlib][awt]Compatibility: java.awt.Window has null default Font on RI while it hasn't
on Harmony
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1605
>                 URL: https://issues.apache.org/jira/browse/HARMONY-1605
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: HARMONY-1605-ComponentTest.patch, Harmony-1605-test.patch, HARMONY-1605.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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message