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
There seems to be an issue using a JavaClass that uses java.util.Properties as one of it's arguments.
For example, the java class is:
import java.util.Properties
public class Tester {
public Tester(String x, String y, Properties p) {
this.x = x;
this.y = y;
Properties props = new Properties();
In my python code I am doing the following:
from jnius import autoclass
Properties = autoclass('java.util.Properties')
props = Properties()
x = 'test 1'
y = 'result'
tester = Tester(x, y, props)
And the exception I am getting is:
JavaException: Invalid python object for this argument. Want 'java/util/Properties', got <java.util.Properties at 0x2b6851d19fb0 jclass=java/util/Properties jself=<LocalRef obj=0x42ef348 at 0x2b68752f8630>>
Is this because jnius does not support conversion to java.util.Properties. And if that is the case, can this please be implemented?
The text was updated successfully, but these errors were encountered:
There seems to be an issue using a JavaClass that uses java.util.Properties as one of it's arguments.
For example, the java class is:
In my python code I am doing the following:
And the exception I am getting is:
JavaException: Invalid python object for this argument. Want 'java/util/Properties', got <java.util.Properties at 0x2b6851d19fb0 jclass=java/util/Properties jself=<LocalRef obj=0x42ef348 at 0x2b68752f8630>>
Is this because jnius does not support conversion to java.util.Properties. And if that is the case, can this please be implemented?
The text was updated successfully, but these errors were encountered: