As part of the reflection support for generics, the EnclosingMethod attribute
was added to the 1.5 class file format to allow proper reflection on the type
variables of anonymous classes declared inside generified methods. The JVM needs
to parse and preserve this attribute and return it from certain reflective
calls.
was added to the 1.5 class file format to allow proper reflection on the type
variables of anonymous classes declared inside generified methods. The JVM needs
to parse and preserve this attribute and return it from certain reflective
calls.
- relates to
-
JDK-4962341 (reflect) Properly implement Class.getEnclosingMethod
-
- Resolved
-
-
JDK-4994510 EnclosingMethod verification causes cryptography classes to fail to load
-
- Closed
-
-
JDK-4986031 (reflect) Class.getEnclosingMethod() does not work
-
- Closed
-
-
JDK-4986032 (reflect) getEnclosingConstructor: spec contradiction, incorrect behavior
-
- Closed
-
-
JDK-4993153 EnclosingMethod support broken in HotSpot
-
- Closed
-