You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently trying to use groovy grape to load classes from jars that were not on the initial class path to allow for a more interactive scripting experience. We can resolve and download the required jars but we cannot load the classes through autoclass. It seems the issue is with FindClass:
Since Java 2 SDK release 1.2, when FindClass is called through the Invocation Interface, there is no current native method or its associated class loader. In that case, the result of ClassLoader.getSystemClassLoader is used. This is the class loader the virtual machine creates for applications, and is able to locate classes listed in the java.class.path property.
We tried replicating autoclass to accept a class object that was created like this:
If you have any hints on this, we would gladly do our part and add custom class loader functionality in a pull request. At the moment, we are kind of at a dead end here, though.
We are currently trying to use groovy grape to load classes from jars that were not on the initial class path to allow for a more interactive scripting experience. We can resolve and download the required jars but we cannot load the classes through
autoclass
. It seems the issue is with FindClass:We tried replicating
autoclass
to accept a class object that was created like this:I do not know how to replicate
reflect.py:159:
More specifically, I cannot replicate jnius_export_func.pxi:30-33
for
loaded_class
as created through a custom class loader as above.If you have some hints or pointers for me, what I need to modify, I am willing to make the changes and create the PR.
Related to this, is there a way to access the jenv or is the method
get_jnienv
exposed?The text was updated successfully, but these errors were encountered: