[Debian-med-packaging] Bug#912643: biojava-live (1.7) does not build with OpenJDK 11: package com.sun.corba.se.spi.legacy.connection does not exist
Andreas Tille
andreas at fam-tille.de
Sat Nov 3 06:51:18 GMT 2018
Control: tags -1 help
Hi
On Fri, Nov 02, 2018 at 12:25:20AM +0100, Emmanuel Bourg wrote:
> Hi Andreas,
>
> On 01/11/2018 07:20, Andreas Tille wrote:
>
> > [javac] /build/biojava-live-1.7.1/src/org/biojava/bio/structure/PDBHeader.java:10: error: package com.sun.corba.se.spi.legacy.connection does not exist
> > [javac] import com.sun.corba.se.spi.legacy.connection.GetEndPointInfoAgainException;
> > [javac] ^
> > [javac] Note: Some input files use or override a deprecated API.
> >
> >
> > Any hint how to fix this?
>
> Either patch out the CORBA classes (removed in Java 11, and no
> replacement available in Debian), or try setting the release attribute
> to 8 on the <javac> task of the Ant build.
I tried to implement this in
https://salsa.debian.org/med-team/biojava-live/blob/master/debian/patches/java8_instead_of_11.patch
Unfortunately this does not help. Here is the full build log:
compile-biojava:
[javac] /build/biojava-live-1.7.1/build.xml:247: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1444 source files to /build/biojava-live-1.7.1/ant-build/classes/biojava
[javac] Support for javac --release has been added in Java9 ignoring it
[javac] warning: [options] bootstrap class path not set in conjunction with -source 8
[javac] /build/biojava-live-1.7.1/src/org/biojava/bio/proteomics/StructureTools.java:37: warning: as of release 9, '_' is a keyword, and may not be used as an identifier
[javac] private static final AtomicSymbol _;
[javac] ^
[javac] /build/biojava-live-1.7.1/src/org/biojava/bio/proteomics/StructureTools.java:53: warning: as of release 9, '_' is a keyword, and may not be used as an identifier
[javac] _ = (AtomicSymbol) sTok.parseToken(" ");
[javac] ^
[javac] /build/biojava-live-1.7.1/src/org/biojava/bio/proteomics/StructureTools.java:72: warning: as of release 9, '_' is a keyword, and may not be used as an identifier
[javac] return _;
[javac] ^
[javac] /build/biojava-live-1.7.1/src/org/biojava/bio/structure/PDBHeader.java:10: error: package com.sun.corba.se.spi.legacy.connection does not exist
[javac] import com.sun.corba.se.spi.legacy.connection.GetEndPointInfoAgainException;
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
I obviously did not understand your hint correctly. :-(
Kind regards
Andreas.
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list