File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
prj/coherence-core/src/main/java/com/tangosol/util Expand file tree Collapse file tree 1 file changed +7
-4
lines changed 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 ;
14
15
import com .tangosol .net .security .SecurityManagerWrapperImpl ;
15
16
16
17
import java .security .CodeSource ;
@@ -96,10 +97,12 @@ public static Unsafe getUnsafe()
96
97
97
98
}
98
99
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 ))
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 ))
103
106
{
104
107
return INSTANCE ;
105
108
}
You can’t perform that action at this time.
0 commit comments