RFR: JDK-8221642: AccessibleObject::setAccessible throws NPE when invoked by JNI code with no java frame on stack [v2]
Mandy Chung
mchung at openjdk.java.net
Mon Jan 31 17:55:56 UTC 2022
On Sun, 30 Jan 2022 21:59:19 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Mandy Chung has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fix typo
>
> src/java.base/share/classes/java/lang/reflect/AccessibleObject.java line 260:
>
>> 258: * <p> If this method is invoked by <a href="{@docRoot}/../specs/jni/index.html">JNI code</a>
>> 259: * with no caller class on the stack, the {@code accessible} flag can
>> 260: * only set if the member and the declaring class are public, and
>
> s/only set/only be set/
Thanks for catching this. Fixed
-------------
PR: https://git.openjdk.java.net/jdk/pull/7271
More information about the core-libs-dev
mailing list