0

My Java class has several flavors of the same method with each method taking a different Java type as an argument. One takes an int, one takes a boolean, etc.

When my Python code calls method(True), jython calls the int flavor of the method and not the boolean flavor. The result is that the code generates a string of "1" rather than "true"

If this is a limitation of the bridge between Python and Java, I suppose I will have to add methods for Python which have different names. Which I have done and it works. But it would be nice if I didn't have to.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.