diff options
Diffstat (limited to '')
-rw-r--r-- | java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java b/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java index f36dd3a443..3f035ce585 100644 --- a/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java +++ b/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java @@ -19,11 +19,12 @@ package org.apache.tuscany.sca.interfacedef.java.jaxws; -import java.security.SecureClassLoader; +import java.net.URL; +import java.net.URLClassLoader; import java.util.HashMap; import java.util.Map; -public class GeneratedClassLoader extends SecureClassLoader { +public class GeneratedClassLoader extends URLClassLoader { private class GeneratedClass { private String className; private byte[] byteCode; @@ -46,7 +47,7 @@ public class GeneratedClassLoader extends SecureClassLoader { private Map<String, GeneratedClass> generatedClasses = new HashMap<String, GeneratedClass>(); public GeneratedClassLoader(ClassLoader parentLoader) { - super(parentLoader); + super(new URL[0], parentLoader); } @Override |