I get the error:
(Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method traceMethodCalls(boolean) is undefined for the type Runtime)
when I run the code Below.
public static void main(String[] args) {
//Start tracing for instructions
System.out.println("Enabling...");
Runtime.getRuntime().traceMethodCalls(true);
System.out.println("Enabled");
}
}
This method was removed in Java 13.
See the release notes: https://www.oracle.com/java/technologies/javase/13-relnote-issues.html