You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Parsa Moshrefi <pa...@gmail.com> on 2011/07/10 17:35:50 UTC
FSDirectory source code mistake!
Greeting,
There's a mistake in writing the type of the class FSDirectory in the core
of Lucene 3.3. This class is defined as an abstract one while No abstract
method is found inside. Also it yields some other problems like not being
able to create an instance of FSDirectory in the code.
Please answer me as soon as possible !!
regards
Re: FSDirectory source code mistake!
Posted by Simon Willnauer <si...@googlemail.com>.
Hey,
you are right FSDirectory is abstract, yet the fact that it doesn't
declare an abstract method doesn't make it wrong. Please use the
static factory methods FSDirectory.open(File) to create an instance.
This factory will create a reasonable default for your platform. see
the javadoc for details
(http://lucene.apache.org/java/3_3_0/api/core/org/apache/lucene/store/FSDirectory.html)
simon
On Sun, Jul 10, 2011 at 5:35 PM, Parsa Moshrefi
<pa...@gmail.com> wrote:
> Greeting,
> There's a mistake in writing the type of the class FSDirectory in the core
> of Lucene 3.3. This class is defined as an abstract one while No abstract
> method is found inside. Also it yields some other problems like not being
> able to create an instance of FSDirectory in the code.
> Please answer me as soon as possible !!
>
> regards
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org