radioegor146 / native-obfuscator

Java .class to .cpp converter for use with JNI
GNU General Public License v3.0
499 stars 67 forks source link

no idea to support java 9+ feature "Multi-Release" #71

Open ImFl0wow opened 8 months ago

ImFl0wow commented 8 months ago

MANIFEST.MF Multi-Release: true

multirelease.jar ├── META-INF │ └── versions │ └── 9 │ └── multirelease │ └── Helper.class ├── multirelease ├── Helper.class └── Main.class

radioegor146 commented 8 months ago

Wouldn't it be easier to build two separate jars and then combine them as needed?

ImFl0wow commented 8 months ago

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.