A small ClassLoader change proposal

Rémi Forax forax at univ-mlv.fr
Thu Sep 16 14:34:20 UTC 2010

  Le 16/09/2010 15:44, Jevgeni Kabanov a écrit :
> On 16.09.2010, at 16:33, Rémi Forax wrote:
>> So you want to create a classloader local like there is a thread local.
>> You can subclass ClassLoader and put your field in the newly created class.
>> Why do you need to put your localMap in java.lang.Classloader ?
> Because I want it to work with any class loader, not just the ones created by me. In a typical Java EE app you have a lot of custom class loaders created by the container, frameworks and the app. I want to be able to hold a reference to an object, without having to think about what happens when that app is redeployed.
> JK

Why not rewriting libraries classloaders to introduce the classlocal map ?
You're JRebel after all :)


More information about the core-libs-dev mailing list