Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8027181 Type Annotations Cleanup
  3. JDK-8033004

Make base TypeAnnotationPosition data immutable, create better methods for obtaining base TypeAnnotationPositions

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • Verification:
      Not verified

      Description

      Presently, TypeAnnotationPosition is a class containing mutable public fields, and a zero-argument constructor. This is dangerous, and it is not clear what combinations of field values represent sensible instances.

      A better way would be to make the class immutable with private constructors, static methods for creating "Base" TypeAnnotationPositions

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emc Eric Mccorkle
                Reporter:
                emc Eric Mccorkle
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: