JShell: Records with errors are not properly corraled

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 14
    • Affects Version/s: 14
    • Component/s: tools
    • b32

        As reported here:
        https://mail.openjdk.java.net/pipermail/amber-dev/2019-December/005415.html

        Declaring a record which uses an undeclared variable does not work properly:
        ---
        jshell> record R(int i) { public int g() { return unknown; } }

        jshell> new R(0)
        | Error:
        | cannot find symbol
        | symbol: class R
        | new R(0)
        | ^

        jshell>
        ---

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

                Created:
                Updated:
                Resolved: