Other |
---|
tbdUnresolved |
Blocks :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
The current implementation of getting a single method (i.e. Class.getDeclaredMethod and getMethod) has the same class loading effect as Class.getDeclaredMethods and Class.getMethods to obtain all methods. It will resolve all types declared in the method signatures. Similiarly for Class.getDeclaredField and getField, getting a single field will cause loading of the class of all types for all fields like Class.getDeclaredFields and getFields. This causes additional classes that are not used to be loaded. e.g. java.awt.PopupMenu and other classes loaded due to java.awt.Component.class.getDeclaredMethod() call.
|