RFR: 8340081: Test java/foreign/TestLinker.java failed failed: missing permission java.lang.foreign.native.threshold.power.fill
Per Minborg
pminborg at openjdk.org
Fri Sep 13 07:11:09 UTC 2024
On Fri, 13 Sep 2024 06:58:22 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> https://bugs.openjdk.org/browse/JDK-8340089
>
> I think there's a oversight here. What we meant was a separate GetIntegerAction class instead of GetPropertyAction. The code would then look like:
>
>
> final int power = sun.security.action.GetIntegerAction.privilegedGetProperty(PROPERTY_PATH + name, defaultPower);
> return 1 << Math.clamp(power, 0, Integer.SIZE - 2);
https://github.com/openjdk/jdk/pull/20985
Thanks for spotting this.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20983#discussion_r1758298577
More information about the core-libs-dev
mailing list