Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4121019

Exception in JEditorPane (for HTML content)

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      swing1.1
    • CPU:
      x86
    • OS:
      windows_95, windows_nt

      Description

      ==========================================================================
      carlos.lucasius@canada 1998-03-19:
      Bug reported by Corel (licensee) for JFC1.1 using JDK1.1.4 on WINNT4.0.
      Corel: "Very critical bug for our product - requires immediate attention."

      a. Open a new document for editing in a JEditorPane (for HTML content)
      b. Start typing some text
      c. Move the cursor to the start of the document (position 0)
      d. Start typing
      e. The following error occurs:

      Exception occurred during event dispatching:
      com.sun.java.swing.text.StateInvariantError: infinite loop in formatting
              at com.sun.java.swing.text.ParagraphView.rebuildRows(ParagraphView.java:163)
              at com.sun.java.swing.text.ParagraphView.layout(ParagraphView.java:127)
              at com.sun.java.swing.text.ParagraphView.removeUpdate(ParagraphView.java:661)
              at com.sun.java.swing.text.BoxView.removeUpdate(BoxView.java:358)
              at com.sun.java.swing.text.DefaultTextUI$RootView.removeUpdate(DefaultTextUI.java: 848)
              at com.sun.java.swing.text.DefaultTextUI$UpdateHandler.removeUpdate(DefaultTextUI.java:1065)
              at com.sun.java.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:185)
              at com.sun.java.swing.text.AbstractDocument.remove(AbstractDocument.java :371)
              at com.sun.java.swing.text.JTextComponent.replaceSelection(JTextComponent.java:758)
              at com.sun.java.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:650)
              at com.sun.java.swing.text.JTextComponent.processComponentKeyEvent(JTextComponent.java:1026)
              at com.sun.java.swing.JComponent.processKeyEvent(JComponent.java:1256)
              at java.awt.Component.processEvent(Component.java:2138)
              at java.awt.Container.processEvent(Container.java:890)
              at java.awt.Component.dispatchEventImpl(Component.java:1764)
              at java.awt.Container.dispatchEventImpl(Container.java:935)
              at java.awt.Component.dispatchEvent(Component.java:1704)
              at java.awt.LightweightDispatcher.processKeyEvent(Container.java:1407)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1393)
              at java.awt.Container.dispatchEventImpl(Container.java:922)
              at java.awt.Window.dispatchEventImpl(Window.java:441)
              at java.awt.Component.dispatchEvent(Component.java:1704)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)

      NOTE: The same also occurs if you open an already existing document, move to the start and start typing.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tprinzinsunw Timothy Prinzing (Inactive)
              Reporter:
              clucasius Carlos Lucasius (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: