abcl icon indicating copy to clipboard operation
abcl copied to clipboard

class lookup by jclass of result of jnew-runtime-class fails

Open alanruttenberg opened this issue 7 years ago • 2 comments

Because the class loader is a transient memory class loader, and jclass uses the current class loader. Fix would be something like keeping a weak hash table of name to class and have the implementation of jclass check that if the class is otherwise not found.

alanruttenberg avatar Mar 22 '18 19:03 alanruttenberg

You may pass around the classloader which by default is bound to java::*classloader*.

ghost avatar May 05 '18 08:05 ghost

I'm having the same issue in 1.5.0,

You may pass around the classloader which by default is bound to java::*classloader*.

The manual wasn't explicit in this. I had assumed that the default classloader is exactly the same for jnew-runtime-class and for jclass.

So perhaps the bug is on the documentation...

defunkydrummer avatar Sep 20 '18 17:09 defunkydrummer