[#3508] - iReport 5.5.1 can use function extensions with 'java'

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

If you create a new simple report with language set to 'java'.

Then create a Text Field with the following expression:

TODAY()

A simple function from the built-in function extensions.

Compilation will fail with error:

com.jaspersoft.ireport.designer.errorhandler.ProblemItem@45a66a The method TODAY() is undefined for the type FunctionExtensionTest1_1395507048011_448592 net.sf.jasperreports.engine.design.JRDesignExpression@14c9e36

Compilation exceptions: com.jaspersoft.ireport.designer.compiler.ErrorsCollector@17962cd net.sf.jasperreports.engine.JRException:      at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:516)     at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)     at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

When you change the report language to 'groovy' evetrything compiles and runs fine. (So the function extension is in fact available.)

In Jaspersoft Studio there seems *not* to be a similiar problem.

v5.5.1
Michael Schmid's picture
Joined: Oct 4 2013 - 9:43am
Last seen: 2 months 1 week ago
Feedback
randomness