[#9201] - Jaspersoft 6.3.1 - issue with java.math.BigDecimal and .setScale(). Current expression is not valid error, however it generates fine

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

Working with Jaspersoft version 6.3.1. I'm using the following expression:
$F{Price1}.setScale(2)

The Field Price1 is a java.math.BigDecimal. Fresh install of Jaspersoft 6.3.1.
I input the expression and the warning at the top states:
The current expression is not valid. Please verify it!

The part underlined as being incorrect is the 2 within the .setScale(2)
When hovering over the 2 the hover text displays: For input string: ""

Makes it difficult to determine why an expression is failing and whether or not the expression will work as there are incorrect error messages.

v6.3
mreynolds_2's picture
Joined: Jun 1 2016 - 5:49am
Last seen: 1 month 2 weeks ago

1 Comment:

#1
Feedback
randomness