Torsten Curdt wrote:
Couldn't we then maybe also extend from URLClassLoader?


It would have been great if I could have done this, but no, as far as I can tell, URLClassLoader doesn't have a hook we can use to insert the class file transformation.

We could completely override the methods.
This would help easier jetty integration
e.g. Please see

http://issues.apache.org/bugzilla/show_bug.cgi?id=36073

OK. What I can do is to completely replace the findClass method by using the URLCassLoader.findResource.

It won't be able to support package sealing nor can it easily define java.lang.Package correctly, but that applies to the current AntClassLoader-based one, so it's no worse.

--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to