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

Spec and/or impl of AnnotationMirror should be updated

    Details

    • Type: Bug
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: core-libs
    • Labels:
      None

      Description

      The spec of AnnotationMirror contains this line:

       Annotations should be compared using the equals method. There is no guarantee that any particular annotation will always be represented by the same object.

      This suggests that the equals method provides more than just referential equality. But, there is no definition of the equals method, nor does there appear to be any non-default impl of .equals, so it falls back on just testing referential equality.

        Attachments

          Activity

            People

            • Assignee:
              darcy Joe Darcy
              Reporter:
              jjg Jonathan Gibbons
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: