OpenNMS / jrobin

GNU Lesser General Public License v2.1
17 stars 12 forks source link

compiling javadoc with java 11+ fails #7

Open vaukai opened 2 years ago

vaukai commented 2 years ago

compiling javadoc with java 11+ fails in Gentoo:

 * Generating JavaDoc ...
src/main/java/org/jrobin/core/RrdNioBackend.java:27: error: package sun.nio.ch is not visible
import sun.nio.ch.DirectBuffer;
              ^
  (package sun.nio.ch is declared in module java.base, which does not export it to the unnamed module)
1 error
 * ERROR: dev-java/jrobin-1.6.0-r2::gentoo failed (compile phase):
 *   ejavadoc failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2404:  Called java-pkg-simple_src_compile
 *   environment, line  902:  Called ejavadoc '-d' 'target/api' '-encoding' 'UTF-8' '-docencoding' 'UTF-8' '-charset' 'UTF-8' '-classpath' '/usr/share/junit-4/lib/junit.jar:/usr/share/hamcrest-core-1.3/lib/hamcrest-core.jar' '-quiet' '@sources.lst'
 *   environment, line  667:  Called die
 * The specific snippet of code:
 *       javadoc ${javadoc_args} "${@}" || die "ejavadoc failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/jrobin-1.6.0-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/jrobin-1.6.0-r2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-17  CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-17"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =jrobin-1.6.0