Shazwazza opened a new issue #478:
URL: https://github.com/apache/lucenenet/issues/478


   I'm (thankfully finally) porting my Examine project over to 4.8 🎉  I've 
noticed a peculiar thing... If you Dispose (and therefore Close) the 
IndexWriter, most properties accessed like `writer.Analyzer` will throw an 
`ObjectDisposedException`. But if you Dispose 2x on the IndexWriter itself, 
this does not occur, it just ignores the 2nd (and more times). It also doesn't 
occur if you call `IndexWriter.Dispose(bool waitForMerges)` after its already 
disposed, it just ignores it.
   
   Just seems a little inconsistent is all. I had a look at the latest Java 
source and seems like it will do the same thing. I just wanted to post this 
here to see what anyone thinks. I guess since we want to stay as close to the 
java source as possible it will prob remain this way but let me know what you 
think.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to