lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16245] - SearchBean build broken
Date Sun, 11 May 2003 20:46:16 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16245>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16245

SearchBean build broken





------- Additional Comments From otis@apache.org  2003-05-11 20:46 -------
And if one declares 'throws IOException' for next() method in IteratorAdapter,
the compile-time error is:

compile:
    [javac] Compiling 1 source file to
/mnt/disk2/cvs-repositories/jakarta/jakarta-lucene-sandbox/contributions/searchbean/bin/classes
    [javac]
/mnt/disk2/cvs-repositories/jakarta/jakarta-lucene-sandbox/contributions/searchbean/src/java/org/apache/lucene/beans/IteratorAdapter.java:27:
next() in org.apache.lucene.beans.IteratorAdapter cannot implement next() in
java.util.Iterator; overridden method does not throw java.io.IOException
    [javac]     public Object next()
    [javac]                   ^
    [javac] 1 error

BUILD FAILED

>From CVS log:

Although HitsIterator doesn't implement Iterator, it follows the Iterator idiom
so this is just a simple adapter (really more of a wrapper) which does implement
Iterator.


Hmm, did this ever compile?
Did you ever get this to compile, Erik?

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message