Is the argument of your Java method defined as a boolean
or a java.lang.Boolean
?
If it is boolean
, then all the possibilities you have tried should work (if not there might be something wrong with the way you import the Class in your Python code). However, if it's a java.lang.Boolean
, then you have to call your method as such:
item.myMethod(jpype.java.lang.Boolean(True))