Re: Specifying a Version vs. not specifying a Version

2015-05-31 Thread Trejkaz
On Sat, May 30, 2015 at 9:33 AM, Chris Hostetter wrote: > > My best understanding based on what I see in the current code, is that if > you care about backcompat: > > * you must call setVersion() on any *Analyzer* instances you construct > before using them > * you must *not* construct Tokenizer

Re: Specifying a Version vs. not specifying a Version

2015-05-29 Thread Chris Hostetter
: Now StandardTokenizer(Version, Reader) is deprecated and the docs say : to use StandardTokenizer(Reader) instead. But I can't do that, because : that constructor hardcodes Version.LATEST, which will break backwards : compatibility in the future (its Javadoc even confirms that this is : the case.