JDK-8225330 : remove Runtime trace methods
  • Type: CSR
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 13
  • Submitted: 2019-06-05
  • Updated: 2019-06-06
  • Resolved: 2019-06-06
Related Reports
CSR :  
Description
Summary
-------

Remove obsolete tracing methods from java.lang.Runtime.

Problem
-------

The java.lang.Runtime class has two methods, traceInstructions() and traceMethodCalls(), which are obsolete and have long been superseded by other technologies such as JVMTI. These methods do nothing. They have been deprecated for removal since Java 9.

Solution
--------

Remove these methods from Java SE 13.

Specification
-------------

    diff -r 3eb7187b20f0 -r c13abf23fb2e src/java.base/share/classes/java/lang/Runtime.java
    --- a/src/java.base/share/classes/java/lang/Runtime.java	Tue Jun 04 18:59:53 2019 -0700
    +++ b/src/java.base/share/classes/java/lang/Runtime.java	Tue Jun 04 19:28:00 2019 -0700
    @@ -679,32 +679,6 @@
         }
     
         /**
    -     * Not implemented, does nothing.
    -     *
    -     * @deprecated
    -     * This method was intended to control instruction tracing.
    -     * It has been superseded by JVM-specific tracing mechanisms.
    -     * This method is subject to removal in a future version of Java SE.
    -     *
    -     * @param on ignored
    -     */
    -    @Deprecated(since="9", forRemoval=true)
    -    public void traceInstructions(boolean on) { }
    -
    -    /**
    -     * Not implemented, does nothing.
    -     *
    -     * @deprecated
    -     * This method was intended to control method call tracing.
    -     * It has been superseded by JVM-specific tracing mechanisms.
    -     * This method is subject to removal in a future version of Java SE.
    -     *
    -     * @param on ignored
    -     */
    -    @Deprecated(since="9", forRemoval=true)
    -    public void traceMethodCalls(boolean on) { }
    -
    -    /**
          * Loads the native library specified by the filename argument.  The filename
          * argument must be an absolute path name.
          * (for example


Comments
I see a release note is already planned; moving to Approved.
06-06-2019