uschindler commented on pull request #38:
URL: https://github.com/apache/lucene/pull/38#issuecomment-805169097


   The problem here is specific to BytesTermAttribute. In contrast 
CharTermAttribute does not have the issue:
   
   - TermToBytesRefAttribute defines getBytes()
   - Because BytesTermAttribute add setBytes() it also has getBytes(). So we 
decided to let it extend TermToBytesRefAttribute. 
   
   This is IMHO wrong. Attribute interfaces should not extend each other 
(separation of responsibilities). Both shoud declare getBytes() with same 
signature. Then compiler won't complain.
   
   P.S.: For the AppendGraphTokenFilter this was just copypasted. Here not even 
a test fails, as this is never tested with IndexWriter! We should add an 
indexing test!!!


-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to