Latest IntelliJ 2021.2.1 Community Edition
doesn't let me compile sources of Java 12, that include switch expressions, with "Language Level 12", giving either:
switch expressions are not supported at language level '12' or Enhanced 'switch' blocks are not supported at language level '12'
I found this, mandating to set the language level to Java 12 Preview - Switch Expression
, but it's not available in the latest IntelliJ
.
Seriously? what am I supposed to do? set the language-level to 14
? but I particularly want 12
, and preview features must be available for 12
.
What shall I do?