Found by code inspection:
This program is rejected by javac (illegal fall-through from a pattern) while ECJ compiles it:
public class X {
static /* @NonNull */ Object foo(/*@NonNull */ Object o) {
switch (o) {
case String s:
default:
System.out.println();
}
return o;
}
}