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

Lazily load java.lang.annotation.Annotation class

    XMLWordPrintable

Details

    • b51
    • generic
    • generic

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: