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

[JEP 390] Add 'lint' warning for @ValueBased classes

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      master

      Description

      Implement a 'lint' warning in javac for a 'synchronized' statement whose operand is known to be @ValueBased.

      This should apply to an operand expression that has any of:
      - A class type, where the named class is declared @ValueBased
      - An interface type, where the named interface is declared @ValueBased
      - A type variable or intersection type with a @ValueBased bound

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sadayapalam Srikanth Adayapalam
                Reporter:
                dlsmith Dan Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: