RFR: JDK-8227046: compiler implementation for sealed classes, JDK-8227047: Javadoc for sealed types and JDK-8227044: javax.lang.model for sealed classes

Joe Darcy joe.darcy at oracle.com
Thu May 21 05:31:45 UTC 2020


Hi Jan,

On 5/19/2020 5:44 AM, Jan Lahoda wrote:
> Hi Vicente,
>
> javac changes look overall OK to me.
>
>
[snip]


> -regarding TypeElement#getPermittedSubclasses: it currently returns 
> List<? extends TypeMirror>; I wonder if returning List<? extends 
> TypeElement> would be better?
>
I did discuss this design point with Vicente ahead of time. While we 
could probably get away with List<TypeElement> here with the current 
design, I think List<TypeMirror> is more in keeping with 
TypeElement.getSuperclass returning a TypeMirror.

Thanks,

-Joe



More information about the compiler-dev mailing list