JShell: forward variables are not corralled in condition expressions

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: 9
    • Component/s: tools
    • None
    • Cause Known

      JShell API: forward variables are not corralled in condition expressions of while, if.

      -> void f() { if (t) System.out.println("T"); }
      | Error:
      | cannot find symbol
      | symbol: variable t
      | Error:
      | illegal start of type

            Assignee:
            Jan Lahoda
            Reporter:
            Andrei Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: