diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-09-26 09:01:06 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-09-26 09:01:06 +0000 |
commit | 319187c87be09000e7b849045395be967aa5999b (patch) | |
tree | 014b58c0bc2e322499c494d7fe2fb86a18f1eaf6 | |
parent | 4e582f32e41de5c0557d81a39eab14d8f1dc12ab (diff) |
Add missing doPrivileged block.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1175724 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationInvoker.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationInvoker.java b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationInvoker.java index 33008c2e25..4ce1fdcf4b 100644 --- a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationInvoker.java +++ b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationInvoker.java @@ -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() { |