I've got a problem that I can't solve no matter what I try. I have Java library with function that accepts `double` as a parameter. Now I call it from groovy and if the parameter is like `1.1` everything works fine. But if the parameter is `1.0`, I get `ClassCastException` because groovy converts the number to Integer internally and Java can't cast Integer to Double. Explicitly casting the number to double does not help since groovy performs the cast somewhere between groovy and java code.

Is there a way to solve this problem?
Shared publiclyView activity