native-obfuscator icon indicating copy to clipboard operation
native-obfuscator copied to clipboard

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

Open ImFl0wow opened this issue 1 year ago • 2 comments

MANIFEST.MF Multi-Release: true

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

ImFl0wow avatar Jan 14 '24 23:01 ImFl0wow

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

radioegor146 avatar Jan 16 '24 06:01 radioegor146

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.

ImFl0wow avatar Jan 16 '24 06:01 ImFl0wow