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

Markus Koschany apo at debian.org
Wed Nov 1 10:40:43 UTC 2017


Control: forwarded -1 https://lists.gnu.org/archive/html/bug-gnu-electric/2017-10/msg00000.html

On Fri, 25 Aug 2017 16:37:09 +0100 Chris West <solo-debianbugs at goeswhere.com> wrote:> Source: electric
> Version: 9.07+dfsg
> Severity: normal
> User: debian-java at 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] /build/electric-9.07+dfsg/com/sun/electric/tool/user/ui/JobTree.java:58: error:
incompatible types: Vector<JobTreeNode> cannot be converted to Vector<TreeNode>
>     [javac]         children = jobNodes;
>
> Cheers,
> Chris.

Hi Chris,

I have forwarded this bug report upstream and received a private e-mail from Steven Rubin,
apparently the only active developer of Electric. He stated that Electric builds fine with
the Oracle JDK. He suggested to change the following line in
com/sun/electric/tool/user/ui/JobTree.java from

public static class JobTreeNode implements TreeNode

to be

public static class JobTreeNode extends DefaultMutableTreeNode

Unfortunately that didn't fix the issue for me. When I reported my findings to him, he indicated
that it would be better to remove Electric from Debian then...

Do you think using casts would be a viable option with those "terrible Swing" issues?

Regards,

Markus



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20171101/4d6e3ff2/attachment-0001.sig>


More information about the pkg-java-maintainers mailing list