native-obfuscator
native-obfuscator copied to clipboard
no idea to support java 9+ feature "Multi-Release"
MANIFEST.MF Multi-Release: true
multirelease.jar ├── META-INF │ └── versions │ └── 9 │ └── multirelease │ └── Helper.class ├── multirelease ├── Helper.class └── Main.class
Wouldn't it be easier to build two separate jars and then combine them as needed?
You are right, but that feature this is usually used for utilities class, if a different VM version has a more efficient method or the method is deprecated, then the VM will automatically choose the class in the versions folder. if you do it like you said, it will make referencing the dependency complicated.