Skip to content

Commit 778ad00

Browse files
committed
8308642: Unhelpful pattern switch error: illegal fall-through to a pattern
Reviewed-by: mcimadamore
1 parent bb4aed9 commit 778ad00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,12 @@ compiler.err.constant.label.not.compatible=\
574574
constant label of type {0} is not compatible with switch selector type {1}
575575

576576
compiler.err.flows.through.to.pattern=\
577-
illegal fall-through to a pattern
577+
illegal fall-through to a pattern\n\
578+
(the previous case label is missing a break)
578579

579580
compiler.err.flows.through.from.pattern=\
580-
illegal fall-through from a pattern
581+
illegal fall-through from a pattern\n\
582+
(the current case label is missing a break)
581583

582584
compiler.err.invalid.case.label.combination=\
583585
invalid case label combination

0 commit comments

Comments
 (0)