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-2514) [classlib][swing] javax.swing.text.Segment.toString() throws unspecified NPE
Date Thu, 07 Dec 2006 09:09:21 GMT
[classlib][swing] javax.swing.text.Segment.toString() throws unspecified NPE
----------------------------------------------------------------------------

                 Key: HARMONY-2514
                 URL: http://issues.apache.org/jira/browse/HARMONY-2514
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko


javax.swing.text.Segment.toString() throws unspecified NPE on Harmony, but RI doesn't.

============ Test =============
import junit.framework.TestCase;

import javax.swing.text.Segment;

public class Test extends TestCase {
        public void testcase() {
                System.out.println("s.toString() = " + new Segment().toString());
    }
}

============ Harmony ==========
.java.lang.NullPointerException
        at javax.swing.text.Segment.toString(Segment.java:144)
        at Test.testcase(Test.java:11)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at junit.textui.TestRunner.doRun(TestRunner.java:115)
        at junit.textui.TestRunner.start(TestRunner.java:172)
        at junit.textui.TestRunner.main(TestRunner.java:138)
F
Time: 0.016
There was 1 failure:
1) testcase(Test)junit.framework.AssertionFailedError
        at Test.testcase(Test.java:15)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

FAILURES!!!
Tests run: 1,  Failures: 1,  Errors: 0

=========== RI ============
.s.toString() = 

Time: 0

OK (1 test)


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