How Jabel works
masterJabel is a javac compiler plugin that allows you to use modern Java 9-14 syntax (like switch expressions and var declarations) while targeting Java 8.
It works by instrumenting the Java compiler classes to treat new language features as if they were supported in Java 8. It uses the same desugaring logic as Java 9+ but ensures the resulting classfile version remains compatible with Java 8 (major version 52).
Note: While you can use new syntax, you must ensure you do not use new Java 9+ APIs (like StackWalker), as Jabel only handles syntactic sugar that can be compiled to Java 8 bytecode.