RFR: 8334394: Race condition in Class::protectionDomain [v2]
Weijun Wang
weijun at openjdk.org
Mon Jul 22 12:42:48 UTC 2024
On Tue, 16 Jul 2024 12:59:36 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
>>
>> explain why the test is related to the fix
>
> test/jdk/java/lang/Class/ProtectionDomainRace.java line 61:
>
>> 59: private static volatile Throwable failed = null;
>> 60: public static void main(String[] args) throws Throwable {
>> 61: var ac = (PrivilegedAction<? extends Object>) () -> null;
>
> Did you mean to name the PrivilegedAction "ac"? It might be more readable to change this line to `PrivilegedAction<?> pa = () -> null;`.
Done. Thanks.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19752#discussion_r1686482409
More information about the core-libs-dev
mailing list