downgrading my local environment to java 11 from 2...
# community-support
c
downgrading my local environment to java 11 from 21... where does this live?
Copy code
java.lang.UnsupportedClassVersionError: aQute/bnd/gradle/BndBuilderPlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
e
c
yeah.... it occurs to me that this is in a plugin and so that it breaks gradle from running on java 11... sigh
reasons why even though my plugins require 11, I cowardly refuse to go beyond that
I didn't think when I commented on this that the problem was a plugin.. dear java, could you change bytecode version numbering to reflect the major release version too, that'd be helpful
e
it's been a fixed offset from the java version for every release after java 1.2
c
I'm certain that number makes sense somewhere, but I'm not certain how this mere mortal is supposed to memorize a correlation from 61 -> java 17
e
+44
c
anyways, i had (incorrectly) assumed it was gradle compiling the plugin, but if I had picked up on the 17 bytecode 😉
e
ah found it. the versions were related (oak/java versions before public release used some versions, public release java 1.0 was bytecode version 45, subsequent versions bumped the version when needed) and the fixed version offset was formally specified later https://bugs.openjdk.org/browse/JDK-8193662
👍 1
c
sure would be nice if it could be like 17.61.0
e
there's only space for major.minor in the classfile format and going backward would break
👍 1
c
right, I mean, I don't really care what it has in it. Maybe I should rephrase, sure would be nice if it could print 61.0 from Java 17 or something in the error message...
1
don't tell me they couldn't add that feature 😉