[ 
https://issues.apache.org/jira/browse/KAFKA-17723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17941398#comment-17941398
 ] 

Chia-Ping Tsai commented on KAFKA-17723:
----------------------------------------

backport to 3.9 
https://github.com/apache/kafka/commit/fd4c90a7c9c9eda8b15a3f907405d1118a76a7ed

> Fix "this-escape" compiler warnings (MultiThreadedEventProcessor and 
> DistributedHerder) for JDK 23
> --------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-17723
>                 URL: https://issues.apache.org/jira/browse/KAFKA-17723
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Chia-Ping Tsai
>            Assignee: Anshul Goyal
>            Priority: Minor
>             Fix For: 4.0.0, 3.9.1
>
>
> {code:java}
> > Task :coordinator-common:compileJava FAILED
> /root/kafka/coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/MultiThreadedEventProcessor.java:107:
>  warning: [this-escape] possible 'this' escape before subclass is fully 
> initialized
>         this.threads = IntStream.range(0, numThreads).mapToObj(threadId ->
>                                                                ^
> error: warnings found and -Werror specified
>  {code}
> {code:java}
> > Task :connect:runtime:compileJava
> /root/kafka/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:269:
>  warning: [this-escape] possible 'this' escape before subclass is fully 
> initialized
>         this(config, worker, worker.workerId(), kafkaClusterId, 
> statusBackingStore, configBackingStore, null, restUrl, restClient, 
> worker.metrics(),
>             ^
> /root/kafka/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:318:
>  warning: [this-escape] previous possible 'this' escape happens here via 
> invocation
>                               new RebalanceListener(time), time, clientId, 
> logContext);
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to