Minor thoughts (Re: [External] : Re: JEP draft: Prepare to Restrict The Use of JNI
Ron Pressler
ron.pressler at oracle.com
Fri Sep 1 17:35:22 UTC 2023
>
>> On Sep 1, 2023, at 5:08 AM, Ron Pressler <ron.pressler at oracle.com> wrote:
>>
>> In other words, it’s extremely hard for the author to know whether their application is carrying knives or not, and if so where to look if its handling them safely.
>
> Indeed. How does the flag solve this problem?
>
A future release may require the flag to allow native access. In that future application authors know with certainty that unless they've provided the flag, their application isn’t using any knives.
For the moment, however, we’re talking about warnings. The warnings let you know if your program uses JNI, and, as the JEP says, we may also add an additional capability to jdeps to help you statically analyse your codebase for uses of restricted and native methods.
— Ron
More information about the jdk-dev
mailing list