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

Identify and annotate value based classes with @ValueBased

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Duplicate
    • None
    • tbd_major
    • tools
    • None
    • generic
    • 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

        Issue Links

          Activity

            People

              sadayapalam Srikanth Adayapalam (Inactive)
              sadayapalam Srikanth Adayapalam (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: