[kaffe] Class pool handling

Guilhem Lavaux guilhem at kaffe.org
Fri Jan 30 10:48:02 PST 2004


I'm trying to make ant-1.6.0 work with kaffe and I've stopped on a 
strange problem: it appears that the interface AntMain is loaded twice 
by kaffe. The first time is using the primary class loader, the second 
time using URLClassLoader. This causes the VM to consider the two 
entries concerning AntMain as two interfaces different and so when ant 
tries to cast a class inheriting AntMain there is an exception which is 

So my question is: could classes be loaded multiple times if we're using 
different class loaders (I haven't yet read completely the JLS) ? If 
it's the case we should modify instanceof (in soft.c). If it's not we 
have to modify loadClass (classMethod.c) to look for any existing entry 
of a class in the pool.

I'm having a more complete look at JLS...



More information about the kaffe mailing list