This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 115334b  Fix backport
115334b is described below

commit 115334b1b5c1888bee600d0b9e9613da2fd4b968
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Dec 10 16:06:52 2021 +0000

    Fix backport
---
 .../apache/tomcat/util/security/PrivilegedSetAccessControlContext.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/org/apache/tomcat/util/security/PrivilegedSetAccessControlContext.java 
b/java/org/apache/tomcat/util/security/PrivilegedSetAccessControlContext.java
index 2f53480..9f9f4c9 100644
--- 
a/java/org/apache/tomcat/util/security/PrivilegedSetAccessControlContext.java
+++ 
b/java/org/apache/tomcat/util/security/PrivilegedSetAccessControlContext.java
@@ -38,7 +38,7 @@ public class PrivilegedSetAccessControlContext implements 
PrivilegedAction<Void>
         Field f = null;
         try {
             f = Thread.class.getDeclaredField("inheritedAccessControlContext");
-            f.trySetAccessible();
+            f.setAccessible(true);
         } catch (NoSuchFieldException | SecurityException e) {
             
log.warn(sm.getString("privilegedSetAccessControlContext.lookupFailed"), e);
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to