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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • tbd
    • 8
    • core-libs

      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.

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

              Created:
              Updated:
              Resolved: