[ https://issues.apache.org/jira/browse/LUCENE-1451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647129#action_12647129 ]
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: https://issues.apache.org/jira/browse/LUCENE-1451 > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]