This patch series allows for upgrading to the latest version of JasperReports (6.21.0)
The first patch fixes casting errors when upgrading to 3.6+. Jrxml files are loaded as JasperDesign objects instead of being compiled and loaded as JasperReport objects.
The second patch replaces deprecated enums/functions removed in 4.1+. Simply removing all code related to JRFont seems to work but should ideally be replaced with styles.
The third patch replaces deprecated enums/functions removed in 6.8+.
The fourth patch is just a naive implementation of loading styles from a .jrtx file without caching, this also requires changes to be made to all .jrxml files.
I have versions of the .jrxml files using styles in the works.
All these patches are NOT well tested as I'm not very familiar with the program yet and have close to zero experience with Java development in general.
//Toby
Thanks bxz023. With this as base I managed, as midsummer project, to add scaffolding and get reports being prepared properly with v6.21.4 and actually print to pdf with a switch to optional openpdf instead of itext. Minimal testing of reports has been performed on jre21, where both generation and save as pdf now works, but I would recommend to stay on jre8 until we tested all functionality.