Java 9 support?

Saturday, 19 August 2017 · 2 messages
CW
Chris West19 Aug 2017 20:58 #
Debian and Ubuntu are looking to move to Java 9 for their next releases, for all possible packages. basex currently fails to build with Java 9 due to some rather boring errors: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project basex: Compilation failure: Compilation failure: [ERROR] /build/basex-8.5.1/basex-core/src/main/java/org/basex/query/func/inspect/Inspect.java:[34,3] reference to Module is ambiguous [ERROR] both class org.basex.query.Module in org.basex.query and class java.lang.Module in java.lang match [ERROR] /build/basex-8.5.1/basex-core/src/main/java/org/basex/gui/GUIInput.java:[253,13] incompatible types: javax.swing.JComboBox<java.lang.String> cannot be converted to javax.swing.JComboBox<java.lang.Object> [ERROR] /build/basex-8.5.1/basex-core/src/main/java/org/basex/query/func/crypto/MyKeySelector.java:[51,44] incompatible types: java.util.List<javax.xml.crypto.XMLStructure> cannot be converted to java.util.List<java.lang.Object> Would there be any interest in fixing these? The website suggests that any version of Java is supported, and Java 9 will be out soon (~31 days). I can have a go at a pull request, but I'd not heard of basex before today, so maybe someone else would like a stab at it. I had a quick poke through the mailing list archives, and can't see any other discussion about this; sorry if it's been brought up before. Chris.
CG
Christian Grün19 Aug 2017 22:52 #
Hi Chris, Thanks for the suggestion. I didn’t check out Java 9 yet, but I assume there’s definitely interest in having BaseX compilable with the upcoming version. If you want to give it a try and create a pull request for us, that would be nice! All the best, Christian
Quoted text · Chris West · 22 lines
On Sat, Aug 19, 2017 at 8:58 PM, Chris West <solo-basex at goeswhere.com> wrote: > Debian and Ubuntu are looking to move to Java 9 for their next releases, > for all possible packages. basex currently fails to build with Java 9 > due to some rather boring errors: > > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project basex: Compilation failure: Compilation failure: > [ERROR] /build/basex-8.5.1/basex-core/src/main/java/org/basex/query/func/inspect/Inspect.java:[34,3] reference to Module is ambiguous > [ERROR] both class org.basex.query.Module in org.basex.query and class java.lang.Module in java.lang match > [ERROR] /build/basex-8.5.1/basex-core/src/main/java/org/basex/gui/GUIInput.java:[253,13] incompatible types: javax.swing.JComboBox<java.lang.String> cannot be converted to javax.swing.JComboBox<java.lang.Object> > [ERROR] /build/basex-8.5.1/basex-core/src/main/java/org/basex/query/func/crypto/MyKeySelector.java:[51,44] incompatible types: java.util.List<javax.xml.crypto.XMLStructure> cannot be converted to java.util.List<java.lang.Object> > > Would there be any interest in fixing these? The website suggests that > any version of Java is supported, and Java 9 will be out soon (~31 days). > > I can have a go at a pull request, but I'd not heard of basex before > today, so maybe someone else would like a stab at it. > > I had a quick poke through the mailing list archives, and can't see any > other discussion about this; sorry if it's been brought up before. > > Chris. >

⚡Generated with XQuery