harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2513) [classlib][swing] compatibility: javax.swing.text.StyledEditorKit.getInputAttributes() returns null on Harmony
Date Thu, 07 Dec 2006 08:59:21 GMT
[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


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