Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8317611

Add a tool like jdeprscan to find usage of restricted methods

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 24
    • None
    • tools
    • b06

      The FFM API introduces the concept of restricted methods. These methods are unsafe methods which, when used in correctly, can crash the JVM, or result in memory corruption.

      Restricted methods are marked with an internal annotation (`@Restricted`). Calls to restricted methods are detected by the javac compiler, if the `-Xlint:restricted` flag is provided.

      It would be nice if, in addition to the existing support, a tool similar to `jdeprscan` was also provided, so that developers could scan classfiles and jars and detect usages of restricted methods.

            jvernee Jorn Vernee
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: