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

java.lang.reflect.Field.isAnnotationPresent(paramAnnotation) always returns false when the paramAnnotation is repeatable

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.8.0_112"
      Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      Firstly, I create a repeatable annotion. And then I place more than one of this annotation on a field. Then I reflect this field and invoke the isAnnotationPresent(anno) method on the fied, it always returns false when there are multiple annos on the field


      REPRODUCIBILITY :
      This bug can be reproduced always.

            psonal Pallavi Sonal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: