JEP-401: Static fields in value classes are not implicitly final

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools

      The tests in clss090* assume that static fields in value classes are not implicitly final, but this is not true:

       In a value class, every non-static field is implicitly final. It is permitted for the field declaration to redundantly specify the final modifier.

      2 tests fail now:

          lang/CLSS/clss090/clss09005m0/clss09005m0.html: Failed. compilation did not fail as expected
          lang/CLSS/clss090/clss09005m1/clss09005m1.html: Failed. compilation did not fail as expected

      They need to be made positive.

            Assignee:
            Ella Ananeva
            Reporter:
            Ella Ananeva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: