Bug#875789: [Debian-med-packaging] Bug#875789: FTBFS with Java 9: tests error out

2017-09-15 Thread Andreas Tille
Hi Olivier, On Fri, Sep 15, 2017 at 05:32:19PM +0200, Olivier Sallou wrote: > I could fix the bug and pushed to svn my modifications. Thanks. I'll convert to Git right now. > Everything seems to build with java 8 AND java 9 > > I do not really understand the reason, but it works > >

Bug#875789: [Debian-med-packaging] Bug#875789: FTBFS with Java 9: tests error out

2017-09-15 Thread Olivier Sallou
manifest in jar file seems to be wrong Manifest-Version: 1.0 Class-Path: /usr/share/java/junit.jar /usr/share/java/commons-cli.jar /usr/share/java/rdp-alignment.jar /usr/share/java/rdp-taxonomy-tree.j ar /usr/share/java/jfreechart.jar Created-By: 1.8.0_144 (Oracle Corporation) should be

Bug#875789: [Debian-med-packaging] Bug#875789: FTBFS with Java 9: tests error out

2017-09-15 Thread Olivier Sallou
I could fix the bug and pushed to svn my modifications. Everything seems to build with java 8 AND java 9 I do not really understand the reason, but it works However "binary" does not work: # java -jar rdp_classifier.jar no main manifest attribute, in rdp_classifier.jar the main-class

Bug#875789: [Debian-med-packaging] Bug#875789: FTBFS with Java 9: tests error out

2017-09-15 Thread Olivier Sallou
Issue is related to System.class.getResourceAsStream Works fine with Java8, not Java9, though resources are in classpath

Bug#875789: [Debian-med-packaging] Bug#875789: FTBFS with Java 9: tests error out

2017-09-15 Thread Olivier Sallou
I had a quick look. I made some modifications for Java 9 , but the tests do not match usual Java 9 migration issues and tests do not show any special problem, only NullPointerException java.lang.NullPointerException at java.base/java.io.Reader.init(Reader.java:78) at

Bug#875789: [Debian-med-packaging] Bug#875789: FTBFS with Java 9: tests error out

2017-09-15 Thread Andreas Tille
Hi Olivier, thanks for those hints that sound good. Would you mind adding this as patches to VCS? Kind regards Andreas. On Fri, Sep 15, 2017 at 02:21:59PM +0200, Olivier Sallou wrote: > > > On 09/15/2017 01:24 PM, Andreas Tille wrote: > > control: tags -1 help > > > > Sorry, I have no

Bug#875789: [Debian-med-packaging] Bug#875789: FTBFS with Java 9: tests error out

2017-09-15 Thread Olivier Sallou
On 09/15/2017 01:24 PM, Andreas Tille wrote: > control: tags -1 help > > Sorry, I have no idea how to fix this. :-( > Any hint is welcome. you need to add to compil the option "--add-modules java.se.ee". The pb is it works for Java 9 but not for Java 8. To match both, you can do something like: