harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Deakin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6392) [classlib][swing] Test failures in javax.swing.text.html.HTMLDocument_Reader_ActionsTest
Date Mon, 25 Jan 2010 16:08:34 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804575#action_12804575
] 

Oliver Deakin commented on HARMONY-6392:
----------------------------------------

Looks like this is caused by DTD.java's use of available() again. This time the test is failing
because RAFStream.available() is being called by DTD.read() and its return value is expected
to be a true indication of the number of bytes available. However, the RAFStream.available()
call will only return 0 or 1 in our implementation which causes the DTD.read() to only read
a single byte rather than the whole DTD. I hacked RAFStream.available() to return (mLength-mOffset)
and this makes the test pass, but we really need to fix the DTD.read() method to not use available()
at all.

> [classlib][swing] Test failures in javax.swing.text.html.HTMLDocument_Reader_ActionsTest
> ----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6392
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6392
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows x86
>            Reporter: Oliver Deakin
>             Fix For: 6.0M1, 5.0M12
>
>
> I see 1 failure and 1 error.
> javax.swing.text.html.HTMLDocument_Reader_ActionsTest.testHarmony_4582 fails with output:
> N/A
> java.lang.NullPointerException
> at javax.swing.text.html.HTMLDocument_Reader_ActionsTest.testHarmony_4582(HTMLDocument_Reader_ActionsTest.java:584)
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:116)
> at javax.swing.BasicSwingTestCase.runBareImpl(BasicSwingTestCase.java:121)
> at javax.swing.BasicSwingTestCase$1.run(BasicSwingTestCase.java:135)
> at java.lang.Thread.run(Thread.java:669)
> javax.swing.text.html.HTMLDocument_Reader_ActionsTest.testHarmony_4615 fails with output:
> null expected:<[line4 line4]> but was:<[ line4 line]>
> junit.framework.ComparisonFailure: null expected:<[line4 line4]> but was:<[line4
line]>
> at javax.swing.text.html.HTMLDocument_Reader_ActionsTest.testHarmony_4615(HTMLDocument_Reader_ActionsTest.java:601)
> at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:116)
> at javax.swing.BasicSwingTestCase.runBareImpl(BasicSwingTestCase.java:121)
> at javax.swing.BasicSwingTestCase$1.run(BasicSwingTestCase.java:135)
> at java.lang.Thread.run(Thread.java:669)
> These tests pass for me against M11.

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