Currently javac erroneously does not accept the following switch:
Boolean bool = null;
var _ = switch (bool) {
case null -> "nothing";
case true -> "something true";
case false -> "something false";
};
Boolean bool = null;
var _ = switch (bool) {
case null -> "nothing";
case true -> "something true";
case false -> "something false";
};
- links to
-
Commit(master) openjdk/jdk/c1fdc04a
-
Review(master) openjdk/jdk/20243