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

Lazily load java.lang.annotation.Annotation class

XMLWordPrintable

    • b51
    • generic
    • generic

        java.lang.annotation.Annotation class is always loaded when loading java.lang.Class, java.lang.reflect.Constructor, java.lang.reflect.Method, and java.lang.reflect.Field due to a static field EMPTY_ANNOTATION_ARRAY.

        This dependency is only needed when the getAnnotations or getDeclaredAnnotation method is called. So java.lang.annotation.Annotation can be made lazily loaded.

              mchung Mandy Chung (Inactive)
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: