Open bosschaert opened 11 months ago
Can you describe the scenario where this happens. I think it has to do with the atomos plugin for building, but want to make sure we understand where this is failing. I ask because the report makes it sound like it is the Atomos runtime doing this which I don't believe is the case.
When Atomos starts up it loads all the classes by introspecting Jars.
However it also loads classes from multi-release jars that are for a version that's higher than the currently running JVM.
An exception that shows this:
A naive fix for this can be seen here, where the META-INF version are being ignored: https://github.com/bosschaert/felix-atomos/commit/4a5683253e0ad7831c67821dbbbde636042eaa38#diff-8c0eef3cf462bc384fa77905eb1bf7fef2cca2177f046e5f6a0ad00e61d236fe
However, a real fix should be more sophisticated, probably taking the current JVM version and then walking back to pick the highest META-INF/versions directory that would still apply, but not trying to load classes from higher JVM versions.