When using a subreport with a subreportExpression URL that doesn't exist, the report execution should fail by default, instead of delivering a broken report and letting us believe that everything is all right.
Try this in a report:
...
getClass().getResource("/org/jasperforge/thisFileDoesNotExist.jasper")
That should fail with an exception, instead of pretending everything is ok.
Recommended Comments