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

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

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 16
    • tools
    • b28

    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

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

              Dates

                Created:
                Updated:
                Resolved: