lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helmut Jarausch <jarau...@igpm.rwth-aachen.de>
Subject pylucene branch_3x fails to build
Date Tue, 11 Jan 2011 09:07:08 GMT
First, the patch  jcc/jcc/patches/patch.43.0.6c11 doesn't quite work 
for Python2.7.1. I have attached a modified patch.

More serious is the following error during make
(I'm using sun-jdk-1.6.0.23)

ant -f extensions.xml -Dlucene.dir=lucene-java-3.x
Buildfile: /Work1/Obj/Python/pylucene-build/extensions.xml

compile:
    [mkdir] Created dir: /Work1/Obj/Python/pylucene-build/build/classes
    [javac] /Work1/Obj/Python/pylucene-build/extensions.xml:19: 
warning: 'includeantruntime' was not set, defaulting to 
build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 29 source files to /Work1/Obj/Python/pylucene-
build/build/classes
    [javac] /Work1/Obj/Python/pylucene-build/java/org/apache/pylucene/
search/PythonSimilarity.java:25: 
org.apache.pylucene.search.PythonSimilarity is not abstract and does 
not override abstract method computeNorm
(java.lang.String,org.apache.lucene.index.FieldInvertState) in 
org.apache.lucene.search.Similarity
    [javac] public class PythonSimilarity extends Similarity {
    [javac]        ^
    [javac] /Work1/Obj/Python/pylucene-build/java/org/apache/pylucene/
search/PythonSimilarity.java:70: lengthNorm(java.lang.String,int) in 
org.apache.pylucene.search.PythonSimilarity cannot override lengthNorm
(java.lang.String,int) in org.apache.lucene.search.Similarity; 
overridden method is final
    [javac]     public native float lengthNorm(String fieldName, int 
numTokens);
    [javac]                         ^
    [javac] /Work1/Obj/Python/pylucene-build/java/org/apache/pylucene/
search/PythonSimilarityDelegator.java:49: lengthNorm
(java.lang.String,int) in 
org.apache.pylucene.search.PythonSimilarityDelegator cannot override 
lengthNorm(java.lang.String,int) in 
org.apache.lucene.search.Similarity; overridden method is final
    [javac]     public native float lengthNorm(String fieldName, int 
numTokens);
    [javac]                         ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 3 errors

BUILD FAILED
/Work1/Obj/Python/pylucene-build/extensions.xml:19: Compile failed; see 
the compiler error output for details.


Thanks for looking into it,
Helmut.


-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany

Mime
View raw message