build with jdk1.5 get error message below

[javac] /home/source/nutch/nutch/src/java/net/nutch/indexer/IndexOptimizer.java:81: 
reference to PriorityQueue is ambiguous, both class 
org.apache.lucene.util.PriorityQueue in org.apache.lucene.util and class 
java.util.PriorityQueue in java.util match
   [javac]   private static class ScoreDocQueue extends PriorityQueue {
   [javac]


So patch below, please review :

Index: IndexOptimizer.java
===================================================================
RCS file: /cvsroot/nutch/nutch/src/java/net/nutch/indexer/IndexOptimizer.java,v
retrieving revision 1.4
diff -u -r1.4 IndexOptimizer.java
--- IndexOptimizer.java 7 Jun 2004 18:31:21 -0000 1.4
+++ IndexOptimizer.java 29 Jun 2004 15:46:21 -0000
@@ -78,7 +78,7 @@
}
}
- private static class ScoreDocQueue extends PriorityQueue {
+ private static class ScoreDocQueue extends org.apache.lucene.util.PriorityQueue {
ScoreDocQueue(int size) {
initialize(size);
}





-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to