stillalex commented on code in PR #1958:
URL: https://github.com/apache/solr/pull/1958#discussion_r1341572855
##########
solr/core/src/java/org/apache/solr/search/DelegatingCollector.java:
##########
@@ -80,9 +80,20 @@ protected void doSetNextReader(LeafReaderContext context)
throws IOException {
leafDelegate = delegate.getLeafCollector(context);
}
- public void finish() throws IOException {
+ /**
+ * From Solr 9.4 using Lucene 9.8 onwards
<code>DelegatingCollector.finish</code> clashes with the
+ * super class's <code>LeafCollector.finish</code> method. Please relocate
any finishing logic
+ * into the <code>DelegatingCollector.complete</code> replacement completion
method.
+ */
+ @Override
+ public final void finish() throws IOException {
+ super.finish();
+ }
Review Comment:
good suggestion @cpoerschke I like the idea of making this final to avoid
any weirdness (I got lost in trying to understand this ghost override). And
yeah, mentioning this in the upgrade notes make sense.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]