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

Exception during code completion with type parameters supplied on non-generic type

    Details

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

      Description

      On typing 'new Thread<String>().' in the editor and requesting code suggestions (ctrl+space) an exception is generated. The code suggestions window is not displayed.

      Stack trace:

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              davmac Davin McCall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: