aports/community/sigar/0008-change-language-level-to-18.patch
Kevin Daudt 9c9d94a533 community/sigar: update java language level to 1.8
1.6 is no longer supported, and 1.7 deprecated.
2022-04-23 13:33:51 +00:00

28 lines
990 B
Diff

This patch changes the language level for javac compiler
to 1.8 as 1.4 is no longer supported in newer jdk versions.
Author: Simon Frankenberger <simon-alpine@fraho.eu>
--- old/bindings/java/build.xml
+++ new/bindings/java/build.xml
@@ -96,7 +96,7 @@
<classpath refid="alljars"/>
</available>
<javac destdir="${build}/classes"
- source="1.4" target="1.4"
+ source="1.8" target="1.8"
sourcepath=""
debug="true"
classpathref="libjars">
--- old/bindings/java/hyperic_jni/jni-build.xml
+++ new/bindings/java/hyperic_jni/jni-build.xml
@@ -161,7 +161,7 @@
<echo message="jni.src=${jni.src}, jni.jdk.os=${jni.jdk.os}, ${sun.arch.data.model}-bit"/>
<javac srcdir="${jni.src.java}" destdir="${build}/classes" debug="true"
- source="1.4" target="1.4"
+ source="1.8" target="1.8"
includes="org/hyperic/jni/*.java"/>
<taskdef name="libarch" classname="org.hyperic.jni.ArchNameTask">