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

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


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

commit 3de79307819577149ceb56362d048980d9e1da8b
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