Don't really see a general solution though, my solutions were
either to call another function (int-input) or write pieces of code
in java to handle the long-datatype there.
For ex. a java-function reveiving a string, converting the
string to java-long, then calling the desired java-function.
Okay, I seem to have found a solution to this....
In Coldfusion create a java object of type java.lang.Long and
call its init() method.
Then when you are passing it to java call its .longValue()