[BLUEJ-1120] Exception during code completion with type parameters supplied on non-generic type
On typing '{{new Thread().}}' in the editor and requesting code suggestions (ctrl+space) an exception is generated. The code suggestions window is not displayed.
Stack trace:
{code} Exception in thread "JavaFX Application Thread" java.util.NoSuchElementException at java.util.ArrayList$Itr.next(ArrayList.java:854) at bluej.debugger.gentype.GenTypeClass.mergeMap(GenTypeClass.java:646) at bluej.debugger.gentype.GenTypeClass.getMap(GenTypeClass.java:621) at bluej.parser.ParseUtils.getCompletionsForTarget(ParseUtils.java:163) at bluej.parser.ParseUtils.getPossibleCompletions(ParseUtils.java:86) at bluej.editor.moe.MoeEditor.createContentAssist(MoeEditor.java:3263) at bluej.editor.moe.MoeActions.lambda$contentAssistAction$42(MoeActions.java:1645) at bluej.editor.moe.MoeActions$1.actionPerformed(MoeActions.java:1175) at bluej.editor.moe.MoeActions.lambda$null$2(MoeActions.java:185) at org.fxmisc.wellbehaved.event.InputMap.lambda$consume$7(InputMap.java:93) (etc) {code}
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 4.1.2