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

[jira] Updated: (HARMONY-2513) [classlib][swing] compatibility: javax.swing.text.StyledEditorKit.getInputAttributes() returns null on Harmony

     [ http://issues.apache.org/jira/browse/HARMONY-2513?page=all ]

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

    Attachment: H2513-StyledEditorKitTest.patch

Regression test case.

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