[foreign] RFR: 8225686: Pointer access struct field failed with SecurityManager
Sundararajan Athijegannathan
sundararajan.athijegannathan at oracle.com
Mon Jun 17 08:53:31 UTC 2019
Haven't looked at everything. Quick comment in NativeTypes.java. That
doPrivileged block is not needed.
sun.security.action.GetBooleanAction.privilegedGetProperty can be used -
that is the standard way of reading system properties from code in
java.base module.
-Sundar
On 14/06/19, 12:45 AM, Henry Jen wrote:
> Hi,
>
> Please review webrev[1] for JDK-8225686[2].
>
> The fix is to ensure pointer access works under SecurityManager, the test case should work with java.foreign.Scope permission granted, but there are two area where SecurityException could be thrown.
>
> Also in the webrev, there is a cleanup for libeling binding to remove disposed TU from the ClangUtils.
>
> Cheers,
> Henry
>
> [1] http://cr.openjdk.java.net/~henryjen/panama/8225686/0/webrev/
> [2] https://bugs.openjdk.java.net/browse/JDK-8225686
More information about the panama-dev
mailing list