[ https://issues.apache.org/jira/browse/LUCENE-10143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17424053#comment-17424053 ]
Uwe Schindler commented on LUCENE-10143: ---------------------------------------- Hi, maybe we can use ECJ, not sure. Eclipse has a refactor method "Create Delegate Methods". If the class has a field named delegate, it can do this automatically, here an example: FilterTerms in FilterLeafReader is missing some delegation, too (ignore equals/hashcode): !screenshot-1.png|width=802,height=424! The question is how to externally call the refactor, so we can maybe autogenerate the "base delegators", because the problems happens all the time in Lucene. We add some "FilterXYZ" class that filters "XYZ", but at some point somebody adds a new method and does not fix the delegator. > RateLimitedIndexOutput should delegate writeShort/writeInt/writeLong > -------------------------------------------------------------------- > > Key: LUCENE-10143 > URL: https://issues.apache.org/jira/browse/LUCENE-10143 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Adrien Grand > Priority: Minor > Attachments: screenshot-1.png > > Time Spent: 3h 10m > Remaining Estimate: 0h > > Otherwise merges are not taking advantage of LUCENE-10125. > cc [~uschindler] -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org