I guess that you can try a dynamic invocation using Java refection.

2011/4/8 Vasil Vangelovski <vvangelovski@gmail.com>

I'm not exactly sure how Jython (Python) types get coerced to Java types. It seems that long gets converted to java.math.BigInteger

Is it possible to convert a python long to java.lang.Long and preserve the type? My problem is that I'm passing parameters to a Jasper report and if the report parameter type is set to java.lang.Long, passing a python long causes this exception:
net.sf.jasperreports.engine.JRException: Incompatible java.math.BigInteger value assigned to parameter myparam_name in the invoice dataset.

Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
Jython-users mailing list



My blog and profile (http://pierrethibault.posterous.com)
YouTube page (http://www.youtube.com/user/tubetib)
Twitter (http://twitter.com/pierreth2)