diff --git a/jcl/src/java.base/share/classes/java/lang/Access.java b/jcl/src/java.base/share/classes/java/lang/Access.java index 37c1af85a9c..18e6d8a704e 100644 --- a/jcl/src/java.base/share/classes/java/lang/Access.java +++ b/jcl/src/java.base/share/classes/java/lang/Access.java @@ -595,6 +595,7 @@ public Thread currentCarrierThread() { return Thread.currentCarrierThread(); } + /*[IF JAVA_SPEC_VERSION < 24]*/ public V executeOnCarrierThread(Callable task) throws Exception { V result; Thread currentThread = Thread.currentThread(); @@ -611,6 +612,7 @@ public V executeOnCarrierThread(Callable task) throws Exception { } return result; } + /*[ENDIF] JAVA_SPEC_VERSION < 24 */ public Continuation getContinuation(Thread thread) { return thread.getContinuation();