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

Annotation equals method will fail when presented with nonstandard annotation

XMLWordPrintable

    • b40
    • generic
    • generic

      The equals method for annotations read at runtime runs this code (in AnnotationInvocationHandler.java):

      188 if (v2.getClass() != type)
      189 return false;

      If v2 is not a normal (dynamic proxy) annotation, this will not work.

            jjb Josh Bloch (Inactive)
            jjb Josh Bloch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: