You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/10/11 09:44:00 UTC

[jira] [Updated] (KAFKA-17723) Fix "this-escape" compiler warnings (MultiThreadedEventProcessor and DistributedHerder) introduced by JDK 23

     [ https://issues.apache.org/jira/browse/KAFKA-17723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chia-Ping Tsai updated KAFKA-17723:
-----------------------------------
    Summary: Fix "this-escape" compiler warnings (MultiThreadedEventProcessor and DistributedHerder) introduced by JDK 23  (was: add @SuppressWarnings("this-escape") to MultiThreadedEventProcessor and DistributedHerder)

> Fix "this-escape" compiler warnings (MultiThreadedEventProcessor and DistributedHerder) introduced by JDK 23
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-17723
>                 URL: https://issues.apache.org/jira/browse/KAFKA-17723
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Assignee: Anshul Goyal
>            Priority: Minor
>
> {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)