Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-1088

Editor exception during code completion

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.2
    • Component/s: Java editor
    • Sprint:
      4.1.2

      Description

      Seen in a user's debug log: an exception which occurred in 4.1.1 in the Java editor:

      Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Position 317 is out of bounds
      	at org.reactfx.util.FingerTree$NonEmptyFingerTree.locate(FingerTree.java:42)
      	at org.fxmisc.richtext.model.ReadOnlyStyledDocument.split(ReadOnlyStyledDocument.java:211)
      	at org.fxmisc.richtext.model.ReadOnlyStyledDocument.subSequence(ReadOnlyStyledDocument.java:248)
      	at org.fxmisc.richtext.model.GenericEditableStyledDocumentBase.subSequence(GenericEditableStyledDocumentBase.java:189)
      	at org.fxmisc.richtext.model.SimpleEditableStyledDocument.subSequence(SimpleEditableStyledDocument.java:7)
      	at org.fxmisc.richtext.model.StyledDocument.getText(StyledDocument.java:28)
      	at org.fxmisc.richtext.GenericStyledArea.getText(GenericStyledArea.java:1037)
      	at bluej.editor.moe.MoeEditor$4.suggestionListKeyTyped(MoeEditor.java:3339)
      	at bluej.stride.slots.SuggestionList.lambda$new$6(SuggestionList.java:592)
      	at com.sun.javafx.event.CompositeEventHandler$NormalEventFilterRecord.handleCapturingEvent(CompositeEventHandler.java:282)
      	at com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(CompositeEventHandler.java:98)
      	at com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(EventHandlerManager.java:223)
      	at com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(EventHandlerManager.java:180)
      	at com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(CompositeEventDispatcher.java:43)
      	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:52)
      	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      	at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      	at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      	at javafx.event.Event.fireEvent(Event.java:198)
      	at javafx.scene.Scene$KeyHandler.process(Scene.java:3964)
      	at javafx.scene.Scene$KeyHandler.access$1800(Scene.java:3910)
      	at javafx.scene.Scene.impl_processKeyEvent(Scene.java:2040)
      	at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:2501)
      	at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:217)
      	at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:149)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleKeyEvent$353(GlassViewEventHandler.java:248)
      	at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
      	at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:247)
      	at com.sun.glass.ui.View.handleKeyEvent(View.java:546)
      	at com.sun.glass.ui.View.notifyKey(View.java:966)
      	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      	at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
      	at java.lang.Thread.run(Thread.java:748)
      Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Position 317 is out of bounds
      	at org.reactfx.util.FingerTree$NonEmptyFingerTree.locate(FingerTree.java:42)
      	at org.fxmisc.richtext.model.ReadOnlyStyledDocument.split(ReadOnlyStyledDocument.java:211)
      	at org.fxmisc.richtext.model.ReadOnlyStyledDocument.subSequence(ReadOnlyStyledDocument.java:248)
      	at org.fxmisc.richtext.model.GenericEditableStyledDocumentBase.subSequence(GenericEditableStyledDocumentBase.java:189)
      	at org.fxmisc.richtext.model.SimpleEditableStyledDocument.subSequence(SimpleEditableStyledDocument.java:7)
      	at org.fxmisc.richtext.model.StyledDocument.getText(StyledDocument.java:28)
      	at org.fxmisc.richtext.GenericStyledArea.getText(GenericStyledArea.java:1037)
      	at bluej.editor.moe.MoeEditor$4.suggestionListKeyTyped(MoeEditor.java:3339)
      	at bluej.stride.slots.SuggestionList.lambda$new$6(SuggestionList.java:592)
      	at com.sun.javafx.event.CompositeEventHandler$NormalEventFilterRecord.handleCapturingEvent(CompositeEventHandler.java:282)
      	at com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(CompositeEventHandler.java:98)
      	at com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(EventHandlerManager.java:223)
      	at com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(EventHandlerManager.java:180)
      	at com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(CompositeEventDispatcher.java:43)
      	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:52)
      	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      	at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      	at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      	at javafx.event.Event.fireEvent(Event.java:198)
      	at javafx.scene.Scene$KeyHandler.process(Scene.java:3964)
      	at javafx.scene.Scene$KeyHandler.access$1800(Scene.java:3910)
      	at javafx.scene.Scene.impl_processKeyEvent(Scene.java:2040)
      	at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:2501)
      	at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:217)
      	at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:149)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleKeyEvent$353(GlassViewEventHandler.java:248)
      	at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
      	at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:247)
      	at com.sun.glass.ui.View.handleKeyEvent(View.java:546)
      	at com.sun.glass.ui.View.notifyKey(View.java:966)
      	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      	at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nccb Neil Brown
                Reporter:
                nccb Neil Brown
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: