But I do use addAttribute(Token.class), so I don't understand why you say it's not possible. And I completely don't understand why the new API allows me to just work w/ interfaces and not impls ... A while ago I got the impression that we're trying to get rid of interfaces because they're not easy to maintain back-compat with ...
Shai On Sun, Nov 22, 2009 at 2:36 PM, Uwe Schindler <u...@thetaphi.de> wrote: > > > > I want to add Token.class, and then work w/ Token. Not TermAttribute, > > PosIncrAttribute, OffsetAttribute, PayloadAttribute and TypeAttribute > > (these > > are the five attributes I'm using from Token). Why can't the code add > > Token > > to the attributes map? If all of these are anyway mapped to the same > > instance, what problems will it cause? > > That is simply not possible (see other mail), last sentence. > > Uwe > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >