[#6456] - Text field parsing error

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

If the expression of a text field is a little bit more complex, the parsing fails but the report compiles and the PDF is rendered correct.

AttachmentSize
Image icon parsing_error.png83.21 KB
v6.1.1
grafro's picture
32
Joined: Jul 3 2015 - 2:58am
Last seen: 9 months 1 week ago

2 Comments:

#1

It's not necessarily the fact that the expression is more complex.
It's the fact that you have parentheses() around your object being formatted.

If you use a Text Field with this simple example (new SimpleDateFormat("MM/dd/yyyy")).format(new java.util.Date()), the expression editor will say that the expression is not valid but it will still render correctly.

However if you remove the parentheses, new SimpleDateFormat("MM/dd/yyyy").format(new java.util.Date()), then the expression editor will not complain.

It might still be an issue with the expression editor however.

#2

the parentheses are there because of the cast to DecimalFormat.
I know that the report is rendered correctly (you can read it in my text), its definitely an error in jasperstudio.

Feedback