From a0b17c7ecb9d241ab1d97df04e7bb4489854e788 Mon Sep 17 00:00:00 2001 From: "Keith W. Campbell" Date: Wed, 8 Nov 2023 17:50:04 -0500 Subject: [PATCH] Remove java.lang.Compiler for Java 21+ Fixes: #18430 Signed-off-by: Keith W. Campbell --- .../java.base/share/classes/java/lang/Compiler.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/jcl/src/java.base/share/classes/java/lang/Compiler.java b/jcl/src/java.base/share/classes/java/lang/Compiler.java index b50f14e00d4..c7ad8dbc008 100644 --- a/jcl/src/java.base/share/classes/java/lang/Compiler.java +++ b/jcl/src/java.base/share/classes/java/lang/Compiler.java @@ -1,6 +1,4 @@ -/*[INCLUDE-IF Sidecar16]*/ -package java.lang; - +/*[INCLUDE-IF JAVA_SPEC_VERSION < 21]*/ /******************************************************************************* * Copyright IBM Corp. and others 1998 * @@ -22,7 +20,8 @@ * * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0 OR GPL-2.0-only WITH OpenJDK-assembly-exception-1.0 *******************************************************************************/ - +package java.lang; + /** * This class is a placeholder for environments which * explicitly manage the action of a "Just In Time" @@ -82,8 +81,8 @@ public static boolean compileClass(Class classToCompile) { /** * Compiles all classes whose name matches the argument - * using the JIT compiler. Answers true if the compilation - * was successful, or false if it failed or there was no + * using the JIT compiler. Answers true if the compilation + * was successful, or false if it failed or there was no * JIT compiler available. * * @return boolean