I am migrating a project from Java 8 to OpenJDK 11. Some code is still using sun.misc.VM. When I try to compile it by adding the exports from the jdk.unsupported module, I get the following error:
javac --add-exports jdk.unsupported/sun.misc=ALL-UNNAMED C:\mypath\mysoure.java
C:\mypath\mysoure.java:32: error: cannot find symbol
import sun.misc.VM;
^
symbol: class VM
location: package sun.misc
Also when I browse through the jdk.unsupported.jmod file, I can't find VM under the classes\sun\misc\ path. Is it really gone ore maybe still contained in another module?