-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
-
java 16 2021-03-16
Java(TM) SE Runtime Environment (build 16+36-2231)
Java HotSpot(TM) 64-Bit Server VM (build 16+36-2231, mixed mode, sharing)
-
This server is running CraftBukkit version 3035-Spigot-a25e8ed-221aed6 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
-
Yes
This report is essentially the same as my previous report from two years ago: https://hub.spigotmc.org/jira/browse/SPIGOT-4398
Java 15 and 16 have 'sealed classes' as a preview feature, which - when used - cause the compiler to emit the 'permittedSubClasses' attribute into the bytecode, which currently can't be read by the ClassVisitor from Commodore, because ASM requires Opcodes.ASM9 or higher for that to work. (or else it'll throw an UnsupportedOperationException: https://gitlab.ow2.org/asm/asm/blob/master/asm/src/main/java/org/objectweb/asm/ClassVisitor.java#L148)
I know this java feature is still in preview, but it's likely going to become stable from Java 17 and it's nice to let plugin authors experiment with it already.
I see that ASM itself was already bumped in the pom.xml, but not in Commodore which was probably an oversight. If this could be bumped you would make me very happy