RFR: JDK-8226709: MethodTypeDesc::resolveConstantDesc needs access check per the specification
Vicente Romero
vicente.romero at oracle.com
Tue Jun 25 03:33:53 UTC 2019
Please review fix for [1], at [2]. The implementation of method
MethodTypeDesc.resolveConstantDes is not in sync with its specification.
In particular where it says [3]:
Resolves this descriptor reflectively, emulating the resolution behavior
of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4.
The resolution and access control context is provided by the
MethodHandles.Lookup parameter.
Thanks,
Vicente
[1] https://bugs.openjdk.java.net/browse/JDK-8226709
[2] http://cr.openjdk.java.net/~vromero/8226709/webrev.00/
[3]
http://hg.openjdk.java.net/jdk/jdk/file/ae2e53e379cb/src/java.base/share/classes/java/lang/constant/ConstantDesc.java#l89
More information about the core-libs-dev
mailing list