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

Identify and annotate value based classes with @ValueBased

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd_major
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      JDK-8203465 introduces a new annotation @ValueBased which is an informational marker annotation that can be used to tag
      value based classes (see src/java.base/share/classes/java/lang/doc-files/ValueBased.html)

      JDK-8203465 also implements a lint mode -Xlint:values using which Javac can be tasked to validate the conformance of the usage of so-annotated value based classes against the aforementioned spec and warn on violations.

      The present ticket is raised for the task of actually identifying the value based classes in JDK and annotating them with the new annotation type.

      I envision that this work will be done by the core-libs team with hand holding help from Langtools/Javac to address any problems encountered in the form of excess/spurious warnings or other such problems while building openJDK.

      For now I'll have the ticket against langtools and move it to core-libs once JDK-8203465 gets pushed.

        Attachments

          Activity

            People

            • Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              sadayapalam Srikanth Adayapalam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: