Skip to content

Commit

Permalink
8308642: Unhelpful pattern switch error: illegal fall-through to a pa…
Browse files Browse the repository at this point in the history
…ttern

Reviewed-by: mcimadamore
  • Loading branch information
biboudis committed May 31, 2024
1 parent bb4aed9 commit 778ad00
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,12 @@ compiler.err.constant.label.not.compatible=\
constant label of type {0} is not compatible with switch selector type {1}

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

compiler.err.flows.through.from.pattern=\
illegal fall-through from a pattern
illegal fall-through from a pattern\n\
(the current case label is missing a break)

compiler.err.invalid.case.label.combination=\
invalid case label combination
Expand Down

1 comment on commit 778ad00

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.