In thepeg-1.8.3-java.patch, there are fixed values -source 1.8 -target 1.8 for the javac options. These should be replaced with wariables like JAVAC_SOURCE="$(java-pkg_get-source)" and JAVAC_TARGET="$(java-pkg_get-target)".