Closed Marcono1234 closed 3 years ago
bc8d9a2
javac 16
Sine Java 15 enums have a method $values() which creates the array containing the enum constants, see JDK-8241798.
$values()
This causes CFR's EnumClassRewriter to consider the enum to be malformed and prevents it from desugaring it.
EnumClassRewriter
Any enum compiled with Java >= 15 should allow reproducing this, e.g.:
enum EnumTest { A, B; }
CFR version
bc8d9a2
Compiler
javac 16
Description
Sine Java 15 enums have a method
$values()
which creates the array containing the enum constants, see JDK-8241798.This causes CFR's
EnumClassRewriter
to consider the enum to be malformed and prevents it from desugaring it.Example
Any enum compiled with Java >= 15 should allow reproducing this, e.g.: