Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8136981

JShell API: completion analysis of new is inconsistent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9-repo-kulla
    • 9-repo-kulla
    • 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 '()'.

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

              Created:
              Updated:
              Resolved: