diff --git a/src/main/java/com/alexnederlof/jasperreport/JasperReporter.java b/src/main/java/com/alexnederlof/jasperreport/JasperReporter.java index ed6fe63..12c78c5 100644 --- a/src/main/java/com/alexnederlof/jasperreport/JasperReporter.java +++ b/src/main/java/com/alexnederlof/jasperreport/JasperReporter.java @@ -28,6 +28,7 @@ import net.sf.jasperreports.engine.DefaultJasperReportsContext; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JRPropertiesUtil; +import net.sf.jasperreports.engine.JRReport; import net.sf.jasperreports.engine.design.JRCompiler; import net.sf.jasperreports.engine.design.JRJdtCompiler; import net.sf.jasperreports.engine.xml.JRReportSaxParserFactory; @@ -303,7 +304,7 @@ private void configureJasper() { DefaultJasperReportsContext jrContext = DefaultJasperReportsContext.getInstance(); jrContext.setProperty(JRReportSaxParserFactory.COMPILER_XML_VALIDATION, String.valueOf(xmlValidation)); - jrContext.setProperty(JRCompiler.COMPILER_PREFIX, compiler == null ? JRJdtCompiler.class.getName() : compiler); + jrContext.setProperty(JRCompiler.COMPILER_PREFIX + JRReport.LANGUAGE_JAVA, compiler == null ? JRJdtCompiler.class.getName() : compiler); jrContext.setProperty(JRCompiler.COMPILER_KEEP_JAVA_FILE, Boolean.FALSE.toString()); if (additionalProperties != null) {