harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3625) [classlib][swing] JTextPane throws java.lang.IllegalArgumentException: Model must be 'StyledDocument'
Date Wed, 11 Apr 2007 13:05:32 GMT
[classlib][swing] JTextPane throws java.lang.IllegalArgumentException: Model must be 'StyledDocument'

                 Key: HARMONY-3625
                 URL: https://issues.apache.org/jira/browse/HARMONY-3625
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Mikhail Fursov

Here is the test:

import javax.swing.*;

public class Test {
    public static void main(String[] arg) throws Exception {
        JFrame frame = new JFrame("Hello");
        JTextPane pane = new JTextPane();

        java.net.URL url = Test.class.getResource("Test.java");


It runs OK on SUN or BEA but fails on Harmony with 
Uncaught exception in main:
java.lang.IllegalArgumentException: Model must be 'StyledDocument'
        at javax.swing.JTextPane.setDocument(JTextPane.java:72)
        at javax.swing.JEditorPane.updateDocument(JEditorPane.java:610)
        at javax.swing.JEditorPane.setContentType(JEditorPane.java:577)
        at javax.swing.JEditorPane.getStream(JEditorPane.java:464)
        at javax.swing.JEditorPane.setPage(JEditorPane.java:700)
        at Test.main(Test.java:11)


This problem is a blocker for JFreeChart demo when run on Harmony.

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

View raw message