Bug#874159: FTBFS with Java 9 due to Terrible Swing

2018-03-31 Thread Juhani Numminen
Control: tags -1 upstream fixed-upstream

On Sun, 3 Sep 2017 17:49:02 +0100 Chris West  
wrote:
> The awful changes to generics in a couple of Swing classes seem to be
> at fault. This probably requires pretty significant code changes to fix.
> I recommend taking it up with upstream. See the Swing section on this wiki
> page:
> https://wiki.debian.org/Java/Java9Pitfalls
Looking at https://sourceforge.net/p/mobac/code/commit_browser
it seems that upstream has made a few Java9-related changes.

For example, https://sourceforge.net/p/mobac/code/2365/ must be related to
> [javac]   return type Enumeration is not compatible with Enumeration extends TreeNode>


Regards,
Juhani



Bug#874159: FTBFS with Java 9 due to Terrible Swing

2018-03-12 Thread Emmanuel Bourg
There is also an issue with proguard:

shrink:
 [proguard] ProGuard, version 5.3.3
 [proguard] ProGuard is released under the GNU General Public License. You 
therefore
 [proguard] must ensure that programs that link to it (jdk.internal.reflect, 
...)
 [proguard] carry the GNU General Public License as well. Alternatively, you can
 [proguard] apply for an exception with the author of ProGuard.
 [proguard] Reading program jar 
[/home/ebourg/packaging/mobile-atlas-creator-1.9.16+dfsg1/Mobile_Atlas_Creator.jar]
 [proguard] Reading library jar [/usr/lib/jvm/java-9-openjdk-amd64/lib/rt.jar]

BUILD FAILED
/mobile-atlas-creator-1.9.16+dfsg1/build.xml:203: Can't read 
[/usr/lib/jvm/java-9-openjdk-amd64/lib/rt.jar] (No such file or directory)



Bug#874159: FTBFS with Java 9 due to Terrible Swing

2017-09-03 Thread Chris West
Source: mobile-atlas-creator
Version: 1.9.16+dfsg1
Severity: normal
User: debian-j...@lists.debian.org
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.

The awful changes to generics in a couple of Swing classes seem to be
at fault. This probably requires pretty significant code changes to fix.
I recommend taking it up with upstream. See the Swing section on this wiki
page:
https://wiki.debian.org/Java/Java9Pitfalls


Build log:

[javac] warning: [options] To suppress warnings about obsolete options, use 
-Xlint:-options.
[javac] 
/build/mobile-atlas-creator-1.9.16+dfsg1/src/main/java/mobac/program/model/Atlas.java:42:
 error: Atlas is not abstract and does not override abstract method children() 
in TreeNode
[javac] public class Atlas implements AtlasInterface, ToolTipProvider, 
TreeNode {
[javac]^
[javac] 
/build/mobile-atlas-creator-1.9.16+dfsg1/src/main/java/mobac/program/model/Atlas.java:178:
 error: children() in Atlas cannot implement children() in TreeNode
[javac] public Enumeration children() {
[javac]   ^
[javac]   return type Enumeration is not compatible with Enumeration
[javac] 
/build/mobile-atlas-creator-1.9.16+dfsg1/src/main/java/mobac/program/model/Map.java:48:
 error: Map is not abstract and does not override abstract method children() in 
TreeNode
[javac] public class Map implements MapInterface, ToolTipProvider, 
CapabilityDeletable, TreeNode, DownloadableElement {
[javac]^


Cheers,
Chris.