RFR: 8246778: Compiler implementation for Sealed Classes (Second Preview) [v5]

Jan Lahoda jlahoda at openjdk.java.net
Fri Dec 4 16:25:15 UTC 2020


On Fri, 4 Dec 2020 13:25:04 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Jan Lahoda has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR.
>
> src/java.base/share/classes/java/lang/Class.java line 4394:
> 
>> 4392:      * implement this class or interface if it is sealed. The order of such elements
>> 4393:      * is unspecified. If this {@code Class} object represents a primitive type,
>> 4394:      * {@code void}, an array type, or a class or interface that is not sealed,
> 
> Did you mean {@code Void} here?

I think this means `void.class`. `void.class` is a little special (as are the Class objects for primitive types, like `int.class`), but Void.class or Integer.class are not so much special.

I've updated the patch based on the other comments - thanks!

-------------

PR: https://git.openjdk.java.net/jdk/pull/1483


More information about the hotspot-dev mailing list