Open ImFl0wow opened 8 months ago
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.
MANIFEST.MF Multi-Release: true
multirelease.jar ├── META-INF │ └── versions │ └── 9 │ └── multirelease │ └── Helper.class ├── multirelease ├── Helper.class └── Main.class