Hi Uwe, Unfortunately my IDE (Intellij) does not warn me about calling a static method on a different class name, a nice idea I shall request the feature. Anyway, my suggestion to avoid the confusion still holds; that the FSDirectory open method is overridden in the subclasses, thus "NIOFSDirectory.open(File)" only opens a NIOFSDirectory and has the same semantics as "new NIOFSDirectory(File)", which is what I would expect.
Obviously there is the Java weirdness that using FSDirectory nioFSDirectory = new NIOFSDirectory();, then nioFSDirectory.open() will call FSDirectory.open, but that would be an odd thing to code. Anyway only a suggestion. N --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org