I have a suspicion about this... with your result object, are you able to access any other methods/fields?
I think what may be happening here is that BigDecimal is not supported by Rhino directly. If I'm correct, Rhino handles only java.lang.Integer and java.lang.Double as primitives, and not the generic java.lang.Number, of which BigDecimal is a subclass. One way to solve this is to create your own BigDecimal class which extends ScriptableObject/implements Scriptable, and using it as a wrapper for java.lang.BigDecimal. There may be a neater way than this - I'll leave that for anyone that knows better. _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
