On Thu, 17 Jun 2021 21:21:14 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
> Very good piece of work. I like all the code that can be removed because of > this. Thanks! > > I assume that the new code only kicks in if there's at least a pattern in the > switch, otherwise we fallback to legacy translation (meaning that compiling > with source < 17 is still ok), right? Yes, it is only for pattern matching switches. Traditional switches are still desugared in the way they were. > > I left some comments to help and clarify the javadoc text of the enum BSM. ------------- PR: https://git.openjdk.java.net/jdk17/pull/81