This is similar to #4241 but here it is about ECJ seeing modifiers that don't exist:
public interface X {
int i = switch (0) {
case 2 -> {
class ParentLocal { // This is rejected
}
yield 1;
}
default -> {
yield 0;
}
};
}
Here, in the highlighted line, ECJ reports "Illegal modifier for the local class ParentLocal; only abstract or final is permitted".