[BLUEJ-707] Exception after inserting string literal while code completion showing
Load up the Stride editor, press space for method call, type in "System.out.pri" then hit ctrl-space to get completion. While it's showing, type a double quote, and you'll get this exception:
{code:java} Exception in thread "JavaFX Application Thread" java.lang.ClassCastException: bluej.stride.framedjava.slots.BracketedStructured cannot be cast to bluej.stride.framedjava.slots.StructuredSlotField at bluej.stride.framedjava.slots.InfixStructured.insertChar(InfixStructured.java:1668) at bluej.stride.framedjava.slots.InfixStructured.insert_(InfixStructured.java:1500) at bluej.stride.framedjava.slots.InfixStructured.insertAtPos(InfixStructured.java:1532) at bluej.stride.framedjava.slots.StructuredSlot.lambda$suggestionListKeyTyped$42(StructuredSlot.java:1383) at bluej.stride.framedjava.slots.StructuredSlot.modificationReturn(StructuredSlot.java:1559) at bluej.stride.framedjava.slots.StructuredSlot.modificationReturnPlatform(StructuredSlot.java:1585) at bluej.stride.framedjava.slots.StructuredSlot.suggestionListKeyTyped(StructuredSlot.java:1379) at bluej.stride.slots.SuggestionList.lambda$new$7(SuggestionList.java:591)
{code}
Issue metadata
- Issue type: Sub-task
- Priority: Medium
- Parent issue: [BLUEJ-686] Fix 4.0.0-preview-rc4 issues
- Fix versions: 4.0.0preview