[jdk17] RFR: 8268766: Desugaring of pattern matching enum switch should be improved [v2]
Jan Lahoda
jlahoda at openjdk.java.net
Fri Jun 18 09:14:31 UTC 2021
On Thu, 17 Jun 2021 21:21:14 GMT, Maurizio Cimadamore <mcimadamore at 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
More information about the compiler-dev
mailing list