Jump to content
  • iReport 5.5.1 can use function extensions with 'java'


    Michael Schmid
    CategoryBug report
    PriorityHigh
    ReproducibilityAlways
    ResolutionOpen
    SeverityMajor
    StatusNew
    Versionv5.5.1

    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.



    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...