JShell API: completion analysis of new is inconsistent

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9-repo-kulla
    • Affects Version/s: 9-repo-kulla
    • Component/s: tools
    • None

      As reported in review --

      Sometimes the completeness analysis doesn't behave as expected:

      -> new
      >> ;
      >> ;
      >> ;
      >> ;
      >> ;
      >> ;
      >> Foo();
      | Error:
      | <identifier> expected
      | new
      | ^
      | Error:
      | '(' or '[' expected
      | ;
      | ^

      In the above, I found it confusing that the ';' is not enough to tell the analysis logic that I'm done with the statement - and the analysis will keep waiting until it matches a '()'.

            Assignee:
            Robert Field (Inactive)
            Reporter:
            Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: