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

AnnotationSupport uses == rather than .equals to compare Class objects

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 8
    • Fix Version/s: tbd_minor
    • Component/s: core-libs
    • Labels:

      Description

      The sun.reflect.annotation.AnnotationSupport helper class in some cases use == rather than .equals to compare Class objects.

      This is not technically correct since java.lang.Class does not guarantee that its equals method uses identity.

        Attachments

          Activity

            People

            • Assignee:
              alundblad Andreas Lundblad (Inactive)
              Reporter:
              darcy Joe Darcy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: