Skip to content

Commit 48f557e

Browse files
authored
Merge pull request #19925 from keithc-ca/executeOnCarrierThread
JDK24 removes JavaLangAccess.executeOnCarrierThread()
2 parents c5b3b09 + e4bf5c1 commit 48f557e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jcl/src/java.base/share/classes/java/lang/Access.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ public Thread currentCarrierThread() {
595595
return Thread.currentCarrierThread();
596596
}
597597

598+
/*[IF JAVA_SPEC_VERSION < 24]*/
598599
public <V> V executeOnCarrierThread(Callable<V> task) throws Exception {
599600
V result;
600601
Thread currentThread = Thread.currentThread();
@@ -611,6 +612,7 @@ public <V> V executeOnCarrierThread(Callable<V> task) throws Exception {
611612
}
612613
return result;
613614
}
615+
/*[ENDIF] JAVA_SPEC_VERSION < 24 */
614616

615617
public Continuation getContinuation(Thread thread) {
616618
return thread.getContinuation();

0 commit comments

Comments
 (0)