JEP draft: Prepare to Restrict The Use of JNI

Volker Simonis volker.simonis at gmail.com
Thu Aug 24 13:17:17 UTC 2023


On Thu, Aug 24, 2023 at 5:20 AM Maurizio Cimadamore
<maurizio.cimadamore at oracle.com> wrote:
>
>
> On 24/08/2023 13:16, Maurizio Cimadamore wrote:
> > That said, an internal annotation like `@PreviewFeature` could be
> > enough to provide javac support along the lines you describe.
>
> Hit send too fast :-)
>
> Once we have an internal annotation, it wouldn't be too hard to remove
> the "this is a restricted method" text from the method javadoc, and add
> a "restricted" bubble near the method name instead, similarly to what's
> done for preview methods.
>
> And, if you click on that bubble you go to the shared doc which
> describes what restricted methods are.
>
> This should address all your concerns?

That would be definitely an improvement, but see my comments in my
previous mail.

>
> Maurizio
>


More information about the jdk-dev mailing list