-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Description
Hi,
We have been handling this problem. But I think that it is convenient to correct it.
This statement gives an error:
varDec = new BigDecimal( 123.456789 ).setScale( 2, RoundingMode.HALF_UP );
// Error: Evaluation Error: Error in method invocation: Method setScale(int, RoundingMode) not found in class'bsh.Primitive'
It is annoying when it occurs in class attributes or variables that have to be BigDecimal, as in use cases in jdbc and jpa.
It forces us to duplicate the variables and have a special treatment for those that are BigDecimal or BigInteger.
I think it has to do with the improvement of treating BigDecimal and BigInteger as primitives.
Thanks in advance
Best regards
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels