8267630: Start of release updates for JDK 18

8267632: Add source 18 and target 18 to javac
8267631: Add SourceVersion.RELEASE_18

Reviewed-by: iris, erikj, dholmes
This commit is contained in:
Joe Darcy 2021-06-10 16:22:14 +00:00
parent 74007890bb
commit b018c450e5
63 changed files with 5352 additions and 60 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2021, 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
@ -52,7 +52,8 @@ public class ClassVersionChecker {
FOURTEEN("14", 58),
FIFTEEN("15", 59),
SIXTEEN("16", 60),
SEVENTEEN("17", 61);
SEVENTEEN("17", 61),
EIGHTEEN("18", 62);
private Version(String release, int classFileVer) {
this.release = release;