Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6799230
Votes 0
Synopsis Lazily load java.lang.annotation.Annotation class
Category java:classes_lang
Reported Against
Release Fixed 7(b51)
State 10-Fix Delivered, request for enhancement
Priority: 4-Low
Related Bugs 6798873
Submit Date 29-JAN-2009
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.
Posted Date : 2009-01-29 20:42:23.0
Work Around
N/A
Evaluation
Instantiates the static field EMPTY_ANNOTATION_ARRAY only when the getAnnotations or getDeclaredAnnotation method is called in Class, Method, Field, and Constructor classes.
Posted Date : 2009-01-29 20:42:23.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang