Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently Groovy's target bytecode version is JDK8, which can not leverage the power of native features, e.g. sealed type, record type, etc.
Setting target bytecode by JDK can help us use native features as much as possible.
BTW, Setting target bytecode by JDK is aligned with the behaviour of Java:
Java 1.2 uses major version 46
Java 1.3 uses major version 47
Java 1.4 uses major version 48
Java 5 uses major version 49
Java 6 uses major version 50
Java 7 uses major version 51
Java 8 uses major version 52
Java 9 uses major version 53
Java 10 uses major version 54
Java 11 uses major version 55
Java 12 uses major version 56
Java 13 uses major version 57
Java 14 uses major version 58
Java 15 uses major version 59
Java 16 uses major version 60
Java 17 uses major version 61