Compiler confused by parenthesized "this" in final fields assignments

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 8-pool, 9, 10, 11
    • Component/s: tools
    • None
    • b18

        The following code fails:

        class Unassigned {
          final int x;

          Unassigned() {
            (this).x = 1;
          }
        }

        While removing parentheses make it working.

              Assignee:
              Maurizio Cimadamore
              Reporter:
              Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: