Spot the bug in the Java 17 switch

from Java 17 features
Java 25 LTS intermediate 4 min 1 issue to find

Find why this generated method is not stable Java 17 source code.

Java
static String label(Object value) {
    return switch (value) {
        case String text when !text.isBlank() -> text.strip();
        case String text -> "blank";
        default -> "other";
    };
}
Open in playground
Report an error