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
  • Loading branch information
biboudis committed May 23, 2024
1 parent 2f10a31 commit c3143be
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,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

0 comments on commit c3143be

Please sign in to comment.