lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: FieldCacheImpl mistake?
Date Thu, 15 Feb 2007 21:36:15 GMT
On 2/15/07, Chris Hostetter <> wrote:
> the ideal way to do this might be to add a "getDefault()" method to the
> IntParser and FloatParser interfaces ... but thta wouldn't be backwards
> compatible.

Interfaces vs abstract classes again :-)
Users sometimes like interfaces better because they can essentially do
multiple-inheritance, but providers (like us) should prefer abstract
because it allows us to add new methods and provide backward compatible

IndexReader.hasNorms(), Analyzer.getPositionIncrementGap(), etc, have
all been possible to add in a back-compatible manner becuase they were
based on classes and not interfaces.


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

View raw message