On Wed, 27 Sep 2023 16:09:01 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
> This patch adds a new internal annotation that is used to mark all restricted > me > thods in the FFM API. The new annotation is similar to the one we used for > preview API methods. > > We plan to use the new annotation for adding new javac warnings when calling > restricted methods, as well as to add better javadoc support for restricted > methods. > > I have added a test which, similar to the test for `@CallerSensitive` checks > all methods in `java.base` that are annotated with `@Restricted` and makes > sure they conform to the list of restricted methods. This pull request has now been integrated. Changeset: 79812515 Author: Maurizio Cimadamore <mcimadam...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/798125152ba40ff2d093711629f275b5d74f0bcb Stats: 221 lines in 7 files changed: 221 ins; 0 del; 0 mod 8316970: Add internal annotation to mark restricted methods Reviewed-by: jvernee, iris, alanb ------------- PR: https://git.openjdk.org/jdk/pull/15947