JEP draft: Prepare to Restrict The Use of JNI

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Aug 24 12:20:19 UTC 2023


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?

Maurizio



More information about the jdk-dev mailing list