marburgedu / xxl

Automatically exported from code.google.com/p/xxl
16 stars 8 forks source link

Build broken #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Eclipse compile and javac fail to build the project. Here is the ant output:

Buildfile: /home/ystein/projects/xxl/code/xxlcore/build.xml

init:

compile:
   [delete] Deleting directory /home/ystein/projects/xxl/code/xxlcore/temp/bin
    [mkdir] Created dir: /home/ystein/projects/xxl/code/xxlcore/temp/bin
    [javac] /home/ystein/projects/xxl/code/xxlcore/build.xml:24: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 697 source files to /home/ystein/projects/xxl/code/xxlcore/temp/bin
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/Descriptors.java:58: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]         Rectangle r = (Rectangle)r1.clone();
    [javac]                                    ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:312: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]                 (Rectangle)universe.clone() : (Rectangle) ((ORKeyRange)rootDescriptor).getIndexEntryMBR().clone());
    [javac]                                    ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:321: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]         return (Rectangle)separator.getIndexEntryMBR().clone();
    [javac]                                                       ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:333: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]             descriptor = (Rectangle)rectangle(entries.next() ).clone();
    [javac]                                                               ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:351: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]             Rectangle mbr = (Rectangle)((ORSeparator)descriptor).getIndexEntryMBR().clone();
    [javac]                                                                                    ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:466: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]                                     .maxBound, (Rectangle)((ORKeyRange) rootDescriptor).entryMBR.clone());
    [javac]                                                                                                 ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:472: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]             return new SplitInfo(path).initialize(createORSeparator(bound, (Rectangle)((ORKeyRange) rootDescriptor).entryMBR.clone()));
    [javac]                                                                                                                             ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:588: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]                     Rectangle mbr = (Rectangle)computeMBR(node.entries()).clone();
    [javac]                                                                          ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:607: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]                    Rectangle mbrNode = (Rectangle)computeMBR(mergeInfo.node().entries()).clone();
    [javac]                                                                                         ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:615: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]                      Rectangle mbrSiblingNode = (Rectangle)computeMBR(mergeInfo.siblingNode().entries()).clone(); 
    [javac]                                                                                                         ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:625: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]                  Rectangle mbrNode = (Rectangle)computeMBR(mergeInfo.node().entries()).clone();
    [javac]                                                                                       ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/indexStructures/HilbertRTree.java:628: error: clone() in Descriptor is defined in an inaccessible class or interface
    [javac]                  Rectangle mbrSiblingNode = (Rectangle)computeMBR(mergeInfo.siblingNode().entries()).clone(); 
    [javac]                                                                                                     ^
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/relational/resultSets/MetaDataCursorResultSet.java:49: error: MetaDataCursorResultSet is not abstract and does not override abstract method <T>getObject(String,Class<T>) in ResultSet
    [javac] public class MetaDataCursorResultSet extends AbstractResultSet {
    [javac]        ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>getObject(String,Class<T>)
    [javac] /home/ystein/projects/xxl/code/xxlcore/src/xxl/core/relational/resultSets/VirtualTable.java:41: error: VirtualTable is not abstract and does not override abstract method <T>getObject(String,Class<T>) in ResultSet
    [javac] public class VirtualTable extends DecoratorResultSet {
    [javac]        ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>getObject(String,Class<T>)
    [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] 14 errors

Original issue reported on code.google.com by yannikst...@gmail.com on 6 Aug 2011 at 7:52

GoogleCodeExporter commented 9 years ago
Fixed in r104.

The clone()-errors are very odd. Eclipse can compile it while javac fails. 
Seems like the javac compiler ignores somehow the public clone() method in the 
interface Descriptor and trys to invoke the (protected!) clone-Method of 
Object. 
A simple cast to Descriptor before the invocation of clone() solved the problem.

The last two errors arrised due to unimplemented methods of the interface 
ResultSet.

Original comment by yannikst...@gmail.com on 6 Aug 2011 at 8:12