Log analyser / visualiser for Java HotSpot JIT compiler. Inspect inlining decisions, hot methods, bytecode, and assembly. View results in the JavaFX user interface.
Other
3.06k
stars
437
forks
source link
ReflectionJavap.canUseReflectionJavap() returns true for JDK17 and then fails due to module access denied #335
java.lang.IllegalAccessException: class org.adoptopenjdk.jitwatch.process.javap.ReflectionJavap cannot access class com.sun.tools.javap.JavapTask (in module jdk.jdeps) because module jdk.jdeps does not export com.sun.tools.javap to unnamed module @6d9d3c87
Probably best to try reflective JavapTask and catch the exception and fallback to ProcessBuilder.
java.lang.IllegalAccessException: class org.adoptopenjdk.jitwatch.process.javap.ReflectionJavap cannot access class com.sun.tools.javap.JavapTask (in module jdk.jdeps) because module jdk.jdeps does not export com.sun.tools.javap to unnamed module @6d9d3c87
Probably best to try reflective JavapTask and catch the exception and fallback to ProcessBuilder.