R
RS
Hello
I use a customised ClassLoader which can be called during runtime to load
all .class file present in a directory and its subs. Problem : when it reads
the classes in a folder which has allready been loaded. In this case,
several classes are loaded twice and I've this strange behaviour
Class c = this.defineClass(null,buffer,0,buffer.length);
print c.hashCode() --> gives
18602441
print Class.forName(c.getName()).hashCode() --> gives 3912376
is it possible to "unload" a class ?
The thing is that I've no way to know the binary name of the class I'm
loading, so I cannot test if class has allready been loaded before... Any
idea ?
I use a customised ClassLoader which can be called during runtime to load
all .class file present in a directory and its subs. Problem : when it reads
the classes in a folder which has allready been loaded. In this case,
several classes are loaded twice and I've this strange behaviour
Class c = this.defineClass(null,buffer,0,buffer.length);
print c.hashCode() --> gives
18602441
print Class.forName(c.getName()).hashCode() --> gives 3912376
is it possible to "unload" a class ?
The thing is that I've no way to know the binary name of the class I'm
loading, so I cannot test if class has allready been loaded before... Any
idea ?