diff --git a/xalan/src/main/java/org/apache/xalan/xsltc/compiler/XSLTC.java b/xalan/src/main/java/org/apache/xalan/xsltc/compiler/XSLTC.java index c548538f0..1ea8610a2 100644 --- a/xalan/src/main/java/org/apache/xalan/xsltc/compiler/XSLTC.java +++ b/xalan/src/main/java/org/apache/xalan/xsltc/compiler/XSLTC.java @@ -860,7 +860,7 @@ public void dumpClass(JavaClass clazz) { // check that the, class to be serialized to filesystem, is of the valid format. // check with the native JVM class loader byte[] classByteArray = clazz.getBytes(); - ByteArrayClassLoader classLoader = new ByteArrayClassLoader(classByteArray); + ByteArrayClassLoader classLoader = new ByteArrayClassLoader(classByteArray, ObjectFactory.findClassLoader()); Class clz = classLoader.findClass(clazz.getClassName()); clazz.dump(new BufferedOutputStream( @@ -881,7 +881,8 @@ public class ByteArrayClassLoader extends ClassLoader { byte[] ba; - public ByteArrayClassLoader(byte[] bArray) { + public ByteArrayClassLoader(byte[] bArray, ClassLoader parent) { + super(parent); ba = bArray; }