DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8139>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8139 Can't use translets with custom ClassLoader ------- Additional Comments From [EMAIL PROTECTED] 2002-04-16 21:48 ------- Yes I did a CVS checkout and made a build (target xstlc.jar). So it's the current CVS snapshot I'm working with. The TransletLoader class uses either Thread.currentThread().getContextClassLoader() or ClassLoader.getSystemClassLoader() to determine the ClassLoader it's going to use. None of those methods will return the ClassLoader that was used to load the translet class if one does that like this: MyClassLoader cl = new MyClassLoader(); Class clazz = cl.loadClass(null,new ByteArrayInputStream (transletByteCodeArray),true); Translet transletInstance = (Translet) clazz.newInstance(); I use this custom ClassLoader to avoid writing the bytecode to disc. Feel free to reply if there are still questions.
