mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8227046: compiler implementation for sealed classes
8225056: VM support for sealed classes 8227044: javax.lang.model for sealed classes 8227045: Preview APIs support for sealed classes 8227047: Javadoc for sealed types 8245854: JVM TI Specification for sealed classes Co-authored-by: Harold Seigel <harold.seigel@oracle.com> Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com> Reviewed-by: mcimadamore, forax, darcy, dholmes, jlahoda, lfoltan, mchung, sspitsyn, vromero
This commit is contained in:
parent
567692e4ae
commit
d42bfef8a4
139 changed files with 6877 additions and 192 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -101,8 +101,8 @@ public class TestSourceVersion {
|
|||
Set<String> restrictedKeywords =
|
||||
Set.of("open", "module", "requires", "transitive", "exports",
|
||||
"opens", "to", "uses", "provides", "with",
|
||||
// Assume "record" will be a restricted keyword.
|
||||
"record");
|
||||
// Assume "record" and "sealed" will be restricted keywords.
|
||||
"record", "sealed");
|
||||
|
||||
for (String key : restrictedKeywords) {
|
||||
for (SourceVersion version : SourceVersion.values()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue