Skip to content

Commit 7d1ffb0

Browse files
authored
Merge pull request #20600 from JasonFengJ9/disablesm2
JDK24 removes AccessControlContext references
2 parents 0b18eb2 + aa6429a commit 7d1ffb0

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
@@ -169,11 +169,13 @@ public java.lang.StackTraceElement getStackTraceElement(java.lang.Throwable arg0
169169
return arg0.getInternalStackTrace()[arg1];
170170
}
171171

172+
/*[IF JAVA_SPEC_VERSION < 24]*/
172173
/*[PR CMVC 199693] Prevent trusted method chain attack. */
173174
@SuppressWarnings("removal")
174175
public Thread newThreadWithAcc(Runnable runnable, AccessControlContext acc) {
175176
return new Thread(runnable, acc);
176177
}
178+
/*[ENDIF] JAVA_SPEC_VERSION < 24 */
177179

178180
/**
179181
* Returns a directly present annotation instance of annotationClass type from clazz.

0 commit comments

Comments
 (0)