uschindler opened a new issue, #12041: URL: https://github.com/apache/lucene/issues/12041
### Description In Java 20 checks when compiling inner classes were made more strict, this causes replicator to fail while building: ``` > Task :lucene:replicator:compileTestJava FAILED /home/jenkins/workspace/Lucene-main-Linux/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java:738: error: local variables referenced from an inner class must be final or effectively final if (childLog != null) { ^ /home/jenkins/workspace/Lucene-main-Linux/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java:740: error: local variables referenced from an inner class must be final or effectively final childLog.write("process done; exitValue=" + exitValue + "\n"); ^ /home/jenkins/workspace/Lucene-main-Linux/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java:741: error: local variables referenced from an inner class must be final or effectively final childLog.close(); ^ /home/jenkins/workspace/Lucene-main-Linux/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java:751: error: local variables referenced from an inner class must be final or effectively final if (childLog != null) { ^ /home/jenkins/workspace/Lucene-main-Linux/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/TestStressNRTReplication.java:758: error: local variables referenced from an inner class must be final or effectively final + childLog ^ Note: /home/jenkins/workspace/Lucene-main-Linux/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleTransLog.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 5 errors ``` ### Version and environment details Java 20, build 29 -- 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.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