Doug,

I'll see if i can get the java.util to only included
what is used and see if that gets around the bug.

--- Doug Cutting <[EMAIL PROTECTED]> wrote:
> I'd rather fix this by changing the imports.
> 
> What happens if we explicitly
> 
>    import org.apache.lucene.util.PriorityQueue;
> 
> instead of org.apache.lucene.util.*?
> 
> Or, if that's not enough, we should try restricting
> the java.util 
> imports to those java.util classes which are
> actually used.
> 
> It's better to not to rely on '*' imports, but
> rather to name the 
> individual classes.  I've been lazy in a lot of
> cases and used '*'s, 
> but, when this causes conflicts, I think the best
> way to fix them is to 
> remove the '*'s.
> 
> Doug
> 
> Byron Miller wrote:
> > Apparently jdk 1.5.0 now has PriorityQueue in the
> > java.util.* classes so i've made the reference
> hard
> > linked to the lucene priority queue so everything
> > compiles correctly.
> > 
> > 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 04:27:29 -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
> 
> 
>
-------------------------------------------------------
> 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
> 



-------------------------------------------------------
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