lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcelo Ochoa <>
Subject Re: Different behavior of Directory.fieldLength()
Date Sat, 13 Mar 2010 11:21:23 GMT
> That is not true, the API says:
> "Creates a new File *instance* from a parent pathname string and a child pathname string."
> Please note "instance", so it will never create the file on disk. New File() just creates
a file instance but no file on disk. You can check this with a simple test.
  OK but what the about the exception?
  If the creation of the File instance do not throw an exception and
the method File.length() returns 0 if a file does not exists
RAMDirectory and other classes which also override this method should
be modified to return 0.
  Best regards, Marcelo.

Marcelo F. Ochoa
Want to integrate Lucene and Oracle?
Is Oracle 11g REST ready?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message