There was an simmilar issue:
was fixed by:
But issue still exist if we use JDK 11 as runtime.
When I have a build in matrix for many JDKs, one build will fail.
So code:
switch (handling) {
// comments
case expand:
...
}
is ok if I use JDK 11 but fail if use JDK 17+