Index: applications/editors/josm/plugins/opendata/build.xml
===================================================================
--- applications/editors/josm/plugins/opendata/build.xml	(revision 35909)
+++ applications/editors/josm/plugins/opendata/build.xml	(revision 35910)
@@ -34,5 +34,5 @@
     <target name="compile_poi" depends="init">
         <echo message="compiling Apache POI ... "/>
-        <javac srcdir="includes/org/apache/poi" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
+	<javac srcdir="includes/org/apache/poi" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" release="${java.lang.version}" />
     </target>
     <!--
@@ -43,5 +43,5 @@
     <target name="compile_jopendoc" depends="init">
         <echo message="compiling JOpenDocument ... "/>
-        <javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" >
+	<javac srcdir="includes/org/jopendocument" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" release="${java.lang.version}">
             <classpath>
                 <!-- JDOM is required in an older version than the one embedded in geotools jar -->
@@ -58,5 +58,5 @@
     <target name="compile_j7zip" depends="init">
         <echo message="compiling J7Zip ... "/>
-        <javac srcdir="includes/org/j7zip" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" />
+	<javac srcdir="includes/org/j7zip" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" release="${java.lang.version}" />
     </target>
     <!--
@@ -67,5 +67,5 @@
     <target name="compile_neptune" depends="init, xjc_neptune">
         <echo message="compiling Neptune ... "/>
-        <javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
+	<javac srcdir="includes/neptune" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8" release="${java.lang.version}">
             <classpath>
                 <fileset refid="jaxb.jars"/>
Index: applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/KmlReaderTest.java
===================================================================
--- applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/KmlReaderTest.java	(revision 35909)
+++ applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/KmlReaderTest.java	(revision 35910)
@@ -23,5 +23,5 @@
      * Setup test.
      */
-    RegisterExtension
+    @RegisterExtension
     JOSMTestRules rules = new JOSMTestRules().projection();
 
