File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
coherence-core-21/src/main/java/com/tangosol/net/security
coherence-core/src/main/java/com/tangosol/util Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public <T> T doIfSecure(PrivilegedExceptionAction<T> action) throws Exception
77
77
}
78
78
79
79
Subject subject = getCurrentSubject ();
80
- return AccessController .doPrivileged ((PrivilegedAction <T >) () ->
80
+ return AccessController .doPrivileged ((PrivilegedExceptionAction <T >) () ->
81
81
Subject .callAs (subject , action ::run ));
82
82
}
83
83
return action .run ();
Original file line number Diff line number Diff line change 11
11
import com .oracle .coherence .common .base .Logger ;
12
12
import com .tangosol .coherence .config .Config ;
13
13
14
- import com .tangosol .net .security .SecurityHelper ;
15
14
import com .tangosol .net .security .SecurityManagerWrapperImpl ;
16
15
17
16
import java .security .CodeSource ;
@@ -97,12 +96,10 @@ public static Unsafe getUnsafe()
97
96
98
97
}
99
98
100
- CodeSource srcUnsafe = Unsafe .class .getProtectionDomain ().getCodeSource ();
101
- CodeSource srcCaller = clzCaller .getProtectionDomain ().getCodeSource ();
102
- CodeSource srcSecurity = SecurityHelper .class .getProtectionDomain ().getCodeSource ();
103
- CodeSource srcSecurity2 = SecurityManagerWrapperImpl .class .getProtectionDomain ().getCodeSource ();
104
- if (Base .equals (srcCaller , srcUnsafe ) || Base .equals (srcCaller , srcSecurity )
105
- || Base .equals (srcCaller , srcSecurity2 ))
99
+ CodeSource srcUnsafe = Unsafe .class .getProtectionDomain ().getCodeSource ();
100
+ CodeSource srcCaller = clzCaller .getProtectionDomain ().getCodeSource ();
101
+ CodeSource srcSecurity = SecurityManagerWrapperImpl .class .getProtectionDomain ().getCodeSource ();
102
+ if (Base .equals (srcCaller , srcUnsafe ) || Base .equals (srcCaller , srcSecurity ))
106
103
{
107
104
return INSTANCE ;
108
105
}
You can’t perform that action at this time.
0 commit comments