JEP draft: Disallow the Dynamic Loading of Agents by Default
Alan Bateman
Alan.Bateman at oracle.com
Mon May 1 15:56:00 UTC 2023
On 01/05/2023 10:57, Ron Pressler wrote:
> :
>> Do you really plan to make JNI an optional feature which will have to
>> be manually enabled at startup?
> Not optional at all, but an important, useful feature that is restricted; JNI’s replacement, FFM will be restricted, too (in its use of native libraries). The restriction of FFM is already mentioned in JEP 442. Another JEP addressing JNI will be published soonish.
Just to add that "Restricted methods" have been in the Java SE spec
since Java 19. So far it has just been the restricted methods in the FFM
API but it's hard to see how this would be extended to list
Runtime.load/loadLibrary at some point.
-Alan
More information about the jigsaw-dev
mailing list