You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/07/13 16:13:04 UTC

[jira] Commented: (HARMONY-4462) [classlib][swing] The test FormView_FormSelectElementTest fails if the SWING classes and resurces are located not in a jar file

    [ https://issues.apache.org/jira/browse/HARMONY-4462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512489 ] 

Alexei Zakharov commented on HARMONY-4462:
------------------------------------------

Looks like the test is invalid and needs to be reworked. 

> [classlib][swing] The test FormView_FormSelectElementTest fails if the SWING classes and resurces are located not in a jar file
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4462
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4462
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrey Pavlenko
>
> The test javax.swing.text.html.FormView_FormSelectElementTest  fails if the SWING classes and resurces are located not in a jar file. See the following reproducer:
> unzip swing.jar -d $HOME/tmp/swing
> cd working_classlib/modules/swing
> $HARMONY_HOME/bin/java -cp ../../deploy/build/test/support.jar:$HOME/tmp/junit-3.8.1.jar:bin/test -Xbootclasspath/p:$HOME/tmp/swing junit.textui.TestRunner javax.swing.text.html.FormView_FormSelectElementTest
> Output:
> .E.E.The GC did not provide gc_add_weak_root_set_entry()
> E.E
> Time: 3.414
> There were 4 errors:
> 1) testModelAttributes(javax.swing.text.html.FormView_FormSelectElementTest)java.lang.NullPointerException
>         at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertEndTag(DefaultStyledDocument.java:603)
>         at javax.swing.text.DefaultStyledDocument$ElementBuffer.performSpecs(DefaultStyledDocument.java:342)
>         at javax.swing.text.DefaultStyledDocument$ElementBuffer.create(DefaultStyledDocument.java:328)
>         at javax.swing.text.DefaultStyledDocument.create(DefaultStyledDocument.java:1207)
>         at javax.swing.text.html.HTMLDocument.access$1(HTMLDocument.java:1)
>         at javax.swing.text.html.HTMLDocument$HTMLReader.flushImpl(HTMLDocument.java:829)
>         at javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:672)
>         at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:738)
>         at javax.swing.text.html.FormView_FormSelectElementTest.createHTMLSample(FormView_FormSelectElementTest.java:395)
>         at javax.swing.text.html.FormView_FormSelectElementTest.testModelAttributes(FormView_FormSelectElementTest.java:55)
>         at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
>         at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
>         at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
>         at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
>         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
>         at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
>         at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:48) 
> For additional info see HARMONY-4008.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.