On Wed, 27 Sep 2023 11:03:16 +1300 Vladimir Petko <vpa1...@gmail.com> wrote:

classes:
    [mkdir] Created dir: /<<PKGBUILDDIR>>/build/classes
    [javac] Compiling 1117 source files to /<<PKGBUILDDIR>>/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 7
    [javac] error: Source option 7 is no longer supported. Use 8 or later.
    [javac] error: Target option 7 is no longer supported. Use 8 or later.

This error no longer occurs with ant/1.10.14-1, but there is another
error caused by the addLast() method in the Lst class conflicting
with the newly introduced List.addLast() method. Changing the return
type of this method should fix the issue.


    [javac] /home/ebourg/packaging/jmol/src/javajs/util/Lst.java:50: error: 
addLast(V) in Lst cannot implement addLast(E) in List
    [javac]   public boolean addLast(V v) {
    [javac]                  ^
    [javac]   return type boolean is not compatible with void
    [javac]   where V,E are type-variables:
    [javac]     V extends Object declared in class Lst
    [javac]     E extends Object declared in interface List
    [javac] /home/ebourg/packaging/jmol/src/javajs/img/GifEncoder.java:239: error: methods 
addLast(V) from Lst<P3> and addLast(E) from ArrayList<P3> are inherited with 
the same signature
    [javac]   private class ColorCell extends Lst<P3> {
    [javac]           ^
    [javac]   where V,E are type-variables:
    [javac]     V extends Object declared in class Lst
    [javac]     E extends Object declared in class ArrayList
    [javac] /home/ebourg/packaging/jmol/src/jspecview/common/MeasurementData.java:38: 
error: methods addLast(V) from Lst<Measurement> and addLast(E) from 
ArrayList<Measurement> are inherited with the same signature
    [javac] public class MeasurementData extends Lst<Measurement> implements
    [javac]        ^
    [javac]   where V,E are type-variables:
    [javac]     V extends Object declared in class Lst
    [javac]     E extends Object declared in class ArrayList
    [javac] 
/home/ebourg/packaging/jmol/src/jspecview/common/IntegralData.java:26: error: 
addLast(V) in Lst cannot implement addLast(E) in List
    [javac] public class IntegralData extends MeasurementData {
    [javac]        ^
    [javac]   return type boolean is not compatible with void
    [javac]   where V,E are type-variables:
    [javac]     V extends Object declared in class Lst
    [javac]     E extends Object declared in interface List
    [javac] /home/ebourg/packaging/jmol/src/jspecview/common/PeakData.java:17: 
error: addLast(V) in Lst cannot implement addLast(E) in List
    [javac] public class PeakData extends MeasurementData {
    [javac]        ^
    [javac]   return type boolean is not compatible with void
    [javac]   where V,E are type-variables:
    [javac]     V extends Object declared in class Lst
    [javac]     E extends Object declared in interface List
    [javac] /home/ebourg/packaging/jmol/src/org/jmol/smiles/SmilesRingSet.java:37: error: 
methods addLast(V) from Lst<SmilesRing> and addLast(E) from 
ArrayList<SmilesRing> are inherited with the same signature
    [javac] class SmilesRingSet extends Lst<SmilesRing> {
    [javac] ^
    [javac]   where V,E are type-variables:
    [javac]     V extends Object declared in class Lst
    [javac]     E extends Object declared in class ArrayList

Reply via email to