There are some JRXML source files containing java expressions for date and time that use the java.util.Date class.
These expressions use joda time functions, which are then converted to java.util.Date
e.g.
<parameter name="startDate" class="java.util.Date">
<defaultValueExpression><![CDATA[new org.joda.time.DateTime(NOW()).toDate()]]>
</defaultValueExpression>
</parameter>
The source files were written for Jasper Reports 5.
With an update to Jasper Reports 8 / 9, the reports can no longer be generated as it appears the joda.time libraries have been removed.
Elsewhere in the code, parameters such as startDate will be part of a queryString:
<queryString><!CDATA[SELECT "Total Enquiries", "Total Resolved",
... FROM weeklyreports.customerstats( $P{startDate}, $P{endDate} );]]>
</queryString>
How can I best migrate these legacy date / time expressions to work with newer java date / time libraries?