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 20:39 ------- I've been digging a little bit further and found the following solution: I changed line 88 (return Class.forName(name);) in NodeSortRecordFactory.loadTranslet() to: return Class.forName(name,true,_translet.getClass().getClassLoader()); In addition to that I swapped lines 115 and 116 to have the _translet variable assigned before the loadTranslet() method is called. What these changes do is the following: The inner classes of translets are not longer loaded using the default ClassLoader. Instead they are loaded by the ClassLoader which loaded the translet class itself. This seems to make sense to me and works fine. I'd be glad if someone could confirm this solution and commit it.
