Re: Draft JEP: Sealed Classes

2021-03-22 Thread forax
> De: "Brian Goetz" > À: "Remi Forax" , "Gavin Bierman" > > Cc: "amber-spec-experts" > Envoyé: Lundi 22 Mars 2021 15:12:58 > Objet: Re: Draft JEP: Sealed Classes >> I think it's missing a discussion about lambdas, anonymous

Re: Draft JEP: Sealed Classes

2021-03-22 Thread Brian Goetz
I think it's missing a discussion about lambdas, anonymous classes and local classes that can all extends/implements a sealed type. For Lambdas and anonymous classes, it's easy, they are anonymous, so have no name to list in the permits clause. Yes, we should state these exclusions explicit

Re: Draft JEP: Sealed Classes

2021-03-22 Thread Remi Forax
> De: "Gavin Bierman" > À: "amber-spec-experts" > Envoyé: Lundi 22 Mars 2021 13:03:31 > Objet: Draft JEP: Sealed Classes > Dear all, > Now JDK 16 is out (yay!) it’s time for us to focus on finalizing Sealed > Classes > in JDK 17. > I have writ

Draft JEP: Sealed Classes

2021-03-22 Thread Gavin Bierman
Dear all, Now JDK 16 is out (yay!) it’s time for us to focus on finalizing Sealed Classes in JDK 17. I have written a draft JEP, which is unchanged (other than some superficial editorial changes) from JEP 397. https://openjdk.java.net/jeps/8260514 (I think Brian’s proposal to consider extendi