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

java.lang.ArrayIndexOutOfBoundsException when running SwingSet2 demo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • client-libs
    • b96
    • generic
    • generic

    Backports

      Description

        Steps to reproduce:
        1. Run SwingSet2 demo
        2. Click on "Source" tab

        Actual result:
        The following exception occurs.

        Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 342
                at javax.swing.text.CompositeView.getView(CompositeView.java:160)
                at javax.swing.text.View.forwardUpdate(View.java:1151)
                at javax.swing.text.BoxView.forwardUpdate(BoxView.java:240)
                at javax.swing.text.View.changedUpdate(View.java:788)
                at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:341)
                at javax.swing.text.View.forwardUpdateToView(View.java:1212)
                at javax.swing.text.View.forwardUpdate(View.java:1183)
                at javax.swing.text.BoxView.forwardUpdate(BoxView.java:240)
                at javax.swing.text.View.changedUpdate(View.java:788)
                at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:341)
                at javax.swing.text.View.forwardUpdateToView(View.java:1212)
                at javax.swing.text.View.forwardUpdate(View.java:1183)
                at javax.swing.text.BoxView.forwardUpdate(BoxView.java:240)
                at javax.swing.text.View.changedUpdate(View.java:788)
                at javax.swing.text.html.BlockView.changedUpdate(BlockView.java:341)
                at javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(BasicTextUI.java:1630)
                at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.changedUpdate(BasicTextUI.java:1891)
                at javax.swing.text.AbstractDocument.fireChangedUpdate(AbstractDocument.java:230)
                at javax.swing.text.html.HTMLDocument.fireChangedUpdate(HTMLDocument.java:1729)
                at javax.swing.text.html.HTMLDocument$HTMLReader.adjustEndElement(HTMLDocument.java:2470)
                at javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:2525)
                at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:263)
                at javax.swing.JEditorPane.setText(JEditorPane.java:1415)
                at SwingSet2$5.run(SwingSet2.java:1042)
                at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
                at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
                at java.awt.EventQueue.access$400(EventQueue.java:97)
                at java.awt.EventQueue$3.run(EventQueue.java:688)
                at java.awt.EventQueue$3.run(EventQueue.java:685)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:220)
                at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:135)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:123)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:119)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:111)
                at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)


        Expected result: No exceptions should be thrown.

        Attachments

          Issue Links

            Activity

              People

                dmarkov Dmitry Markov
                dmarkov Dmitry Markov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: