Add missing doPrivileged block.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1175724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4e582f32e4
commit
319187c87b
1 changed files with 7 additions and 1 deletions
|
@ -136,7 +136,13 @@ public class JavaImplementationInvoker implements Invoker, DataExchangeSemantics
|
|||
// set it so that the thread context classloader of the thread used to invoke an operation
|
||||
// of a Java POJO component implementation is the class loader of the contribution
|
||||
// used to load the POJO implementation class.
|
||||
contributionClassloader = instance.getClass().getClassLoader();
|
||||
contributionClassloader = AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
|
||||
public ClassLoader run() {
|
||||
ClassLoader contributionClassloader = instance.getClass().getClassLoader();
|
||||
return contributionClassloader;
|
||||
}
|
||||
});
|
||||
|
||||
if (tccl != contributionClassloader){
|
||||
AccessController.doPrivileged(new PrivilegedAction() {
|
||||
public Object run() {
|
||||
|
|
Loading…
Add table
Reference in a new issue