JEP proposed to target JDK 17: 406: Pattern Matching for switch (Preview)

Mike Rettig mike.rettig at
Tue Jun 1 20:48:26 UTC 2021

On Tue, Jun 1, 2021 at 3:39 PM Remi Forax <forax at> wrote:

> ----- Mail original -----
> It's the difference between an API point like setAccessible for jigsaw and
> a language construct, the statement switch,
> language constructs are forever not APIs.
> Rémi

The API point setAccessible is still forever. It just requires some options
to enable it. The same can be done with switch or any other language
construct that is deemed legacy.


More information about the jdk-dev mailing list