Skip to content

Commit

Permalink
Remove java.lang.Compiler for Java 21+
Browse files Browse the repository at this point in the history
Fixes: #18430

Signed-off-by: Keith W. Campbell <[email protected]>
  • Loading branch information
keithc-ca committed Dec 6, 2023
1 parent 051b08e commit a0b17c7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions jcl/src/java.base/share/classes/java/lang/Compiler.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*[INCLUDE-IF Sidecar16]*/
package java.lang;

/*[INCLUDE-IF JAVA_SPEC_VERSION < 21]*/
/*******************************************************************************
* Copyright IBM Corp. and others 1998
*
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a0b17c7

Please sign in to comment.