uschindler commented on PR #11840:
URL: https://github.com/apache/lucene/pull/11840#issuecomment-1279954265

   Hi @zhaih,
   the problem you describe is exactly why VirtualMethod is there. It allows to 
figure out which of both methods was overridden by a subclass at runtime.
   I can look into this next week. Actually it is long ago when we used 
VirtualMethod and there is currently no impementation actually using it. We 
used it mostly for Analysis when we did the big change from tokens to 
attributes and thats already 10 years ago. So I have to bring myself up to 
state, mainly because the whole thing is "not easy to understand" as there are 
various code paths that could be affected.
   To say it short: changing metjod signatures of protected methods where you 
have no chance to enforce downstream classes ne API are not easy. JDK avoids 
this, we have VirtualMethod :-)
   We should maybe only merge this to main branch for now and then work 
separately on backport.
   


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

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to