Bug#893359: jboss-xnio FTBFS with openjdk-9

2018-03-25 Thread Markus Koschany

I could solve one part of the build issues with Java 9 but I am stuck with

"/build/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:[19,1]
package exists in another module: java.base
"

I have read about the new --patch-modules option but I am not sure if
this is the right way. Renaming the package is probably the way forward.
However upstream is still working on Java 9 support and I don't want to
act prematurely. Let's see with what they will come up with. Hopefully
it happens before Buster freezes.



signature.asc
Description: OpenPGP digital signature
__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#893359: jboss-xnio FTBFS with openjdk-9

2018-03-18 Thread Adrian Bunk
Source: jboss-xnio
Version: 3.6.2-1
Severity: serious

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/jboss-xnio.html

...
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar (default-cli) on 
project xnio-api: MavenReportException: Error while generating Javadoc: 
[ERROR] Exit code: 1 - 
/build/1st/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:19:
 error: package exists in another module: java.base
[ERROR] package java.nio.channels;
[ERROR] ^
[ERROR] 
/build/1st/jboss-xnio-3.6.2/api/target/generated-sources/annotations/org/xnio/_private/Messages_$logger.java:27:
 error: package javax.annotation is not visible
[ERROR] import javax.annotation.Generated;
[ERROR] ^
[ERROR]   (package javax.annotation is declared in module 
java.xml.ws.annotation, which is not in the module graph)
[ERROR] 
/build/1st/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:31:
 error: cannot find symbol
[ERROR] public abstract class FileChannel extends AbstractInterruptibleChannel 
implements GatheringByteChannel, ScatteringByteChannel {
[ERROR] 
  ^
[ERROR]   symbol: class GatheringByteChannel
[ERROR] 
/build/1st/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:31:
 error: cannot find symbol
[ERROR] public abstract class FileChannel extends AbstractInterruptibleChannel 
implements GatheringByteChannel, ScatteringByteChannel {
[ERROR] 
^
[ERROR]   symbol: class ScatteringByteChannel
[ERROR] 
/build/1st/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:46:
 error: cannot find symbol
[ERROR] public abstract long transferTo(long position, long count, 
WritableByteChannel target) throws IOException;
[ERROR]^
[ERROR]   symbol:   class WritableByteChannel
[ERROR]   location: class FileChannel
[ERROR] 
/build/1st/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:47:
 error: cannot find symbol
[ERROR] public abstract long transferFrom(ReadableByteChannel src, long 
position, long count) throws IOException;
[ERROR]   ^
[ERROR]   symbol:   class ReadableByteChannel
[ERROR]   location: class FileChannel
[ERROR] 
/build/1st/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:51:
 error: cannot find symbol
[ERROR] public abstract FileLock lock(long position, long size, boolean 
shared) throws IOException;
[ERROR] ^
[ERROR]   symbol:   class FileLock
[ERROR]   location: class FileChannel
[ERROR] 
/build/1st/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:52:
 error: cannot find symbol
[ERROR] public final FileLock lock() throws IOException { return null; };
[ERROR]  ^
[ERROR]   symbol:   class FileLock
[ERROR]   location: class FileChannel
[ERROR] 
/build/1st/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:53:
 error: cannot find symbol
[ERROR] public abstract FileLock tryLock(long position, long size, boolean 
shared) throws IOException;
[ERROR] ^
[ERROR]   symbol:   class FileLock
[ERROR]   location: class FileChannel
[ERROR] 
/build/1st/jboss-xnio-3.6.2/api/src/main/java/java/nio/channels/FileChannel.java:54:
 error: cannot find symbol
[ERROR] public final FileLock tryLock() throws IOException { return null; }
[ERROR]  ^
[ERROR]   symbol:   class FileLock
[ERROR]   location: class FileChannel
[ERROR] 
[ERROR] Command line was: /usr/lib/jvm/java-9-openjdk-amd64/bin/javadoc 
@options @packages
[ERROR] 
[ERROR] Refer to the generated Javadoc files in 
'/build/1st/jboss-xnio-3.6.2/api/target/apidocs' dir.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :xnio-api
dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp 
/usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven 
-Dmaven.multiModuleProjectDirectory=/build/1st/jboss-xnio-3.6.2 
-Dclassworlds.conf=/etc/maven/m2-debian.conf 
-Dproperties.file.manual=/build/1st/jboss-xnio-3.6.2/debian/maven.properties 
org.codehaus.plexus.classworlds.launcher.Launcher 
-s/etc/maven/settings-debian.xml 
-Ddebian.dir=/build/1st/jboss-xnio-3.6.2/debian 
-Dmaven.repo.local=/build/1st/jboss-xnio-3.6.2/debian/maven-repo --batch-mode