harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2513) [classlib][swing] compatibility: javax.swing.text.StyledEditorKit.getInputAttributes() returns null on Harmony
Date Fri, 08 Dec 2006 14:20:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2513?page=all ]

Alexey A. Ivanov updated HARMONY-2513:
--------------------------------------

    Attachment: H2513-JTextPaneTest.patch

The update to the StyledEditorKit led to failures in JTextPaneTest.
I have fixed the test by removing isHarmony() section -- now we are more compatible with RI.

> [classlib][swing] compatibility: javax.swing.text.StyledEditorKit.getInputAttributes()
returns null on Harmony
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2513
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2513
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: H2513-JTextPaneTest.patch, H2513-StyledEditorKit.patch, H2513-StyledEditorKitTest.patch
>
>
> Compatibility problem: javax.swing.text.StyledEditorKit.getInputAttributes()
> returns null on Harmony and not null value on RI.
> Test to reproduce:
> import junit.framework.TestCase;
> import javax.swing.text.MutableAttributeSet;
> import javax.swing.text.StyledEditorKit;
> public class Test extends TestCase {
>         public void testcase() {
>                 StyledEditorKit sek = new StyledEditorKit();
>                 MutableAttributeSet result = null;
>                 result = sek.getInputAttributes();
>                 System.out.println("result = " + result);
>                 assertTrue("result != null", (result != null));
>     }
> }
> Output on Harmony:
> C:\WS\tst_my>echo off 
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software
> Foundation or its licensors, as applicable.
> java version "1.5.0" 
> pre-alpha : not complete or compatible
> svn = rsvn: '.' is not a working copy, (Sep 20 2006), Windows/ia32/msvc 1310,
> release build
> http://incubator.apache.org/harmony
> .result = null
> F
> Time: 0.062
> There was 1 failure:
> 1) testcase(Test)junit.framework.AssertionFailedError: result != null
>         at Test.testcase(Test.java:13)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0
> res = 1
> Output on RI:
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
> .result = 
> Time: 0.032
> OK (1 test)
> res = 0

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

        

Mime
View raw message