lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Commented: (LUCENE-1451) Can't create NIOFSDirectory w/o setting a system property
Date Thu, 13 Nov 2008 00:05:44 GMT


Hoss Man commented on LUCENE-1451:

bq. Right... the tests in the patch test for this too. If an instance already exists, then
it's returned.

Miller is probably right and we should just remove the cache anyway -- but if we do leave
it in this still seems dangerous to me, clients aren't guaranteed to get what they ask for.

Adopting the same pattern as with LockType (throw an Exception if a Directory is in the cache
but doens't match the class specified) seems safer.

> Can't create NIOFSDirectory w/o setting a system property
> ---------------------------------------------------------
>                 Key: LUCENE-1451
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>            Priority: Minor
>         Attachments: LUCENE-1451.patch, LUCENE-1451.patch
> NIOFSDirectory.getDirectory() returns a FSDirectory object

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message