-
Enhancement
-
Resolution: Unresolved
-
P3
-
7
-
None
-
generic
-
generic
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.
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.
- blocks
-
JDK-6765774 new launcher behavior in jdk 7 b38
- Resolved
- duplicates
-
JDK-6888126 NoClassDefFoundError in constructor since JDK 6; Java 5 okay
- Closed
- relates to
-
JDK-6765774 new launcher behavior in jdk 7 b38
- Resolved
-
JDK-8021368 Launch of Java Web Start app fails with ClassCircularityError exception in 7u25
- Closed
-
JDK-6824466 (reflect) java.lang.reflect.Method should use java.lang.invoke.MethodHandle
- Closed