David Arthur created KAFKA-17580:
------------------------------------

             Summary: Java 21 spurious compilation failure
                 Key: KAFKA-17580
                 URL: https://issues.apache.org/jira/browse/KAFKA-17580
             Project: Kafka
          Issue Type: Bug
          Components: build, streams
            Reporter: David Arthur
         Attachments: logs_28557874014.zip

On a trunk build with Java 21, we saw a very strange looking compilation error 
during the streams:compileTestJava task.

 
{code:java}
2024-09-18T18:55:00.3977026Z Successfully started process 'command 
'/usr/lib/jvm/temurin-21-jdk-amd64/bin/java''
2024-09-18T18:55:07.4782946Z 
/home/runner/work/kafka/kafka/streams/src/test/java/org/apache/kafka/streams/integration/HighAvailabilityTaskAssignorIntegrationTest.java:319:
 error: incompatible types: inference variable K#1 has incompatible bounds
2024-09-18T18:55:07.4786040Z         return mkObjectProperties(
2024-09-18T18:55:07.4786613Z                ^
2024-09-18T18:55:07.4787738Z     equality constraints: 
String,V#2,V#2,V#2,V#2,V#2,V#2,V#2,V#2,V#1,V#2,V#2,V#2,V#2,V#2,V#2,V#2,K#2,K#2,K#2,K#2,K#2,K#2,K#2,K#2,K#2,K#2,K#2,K#2,K#2,K#2,K#2
2024-09-18T18:55:07.4789261Z     lower bounds: 
AssignmentListener,Long,Integer,String
2024-09-18T18:55:07.4790348Z   where K#1,V#1,V#2,K#2 are type-variables:
2024-09-18T18:55:07.4791245Z     K#1 extends Object declared in method 
<K#1,V#1>mkMap(Entry<K#1,V#1>...)
2024-09-18T18:55:07.4792376Z     V#1 extends Object declared in method 
<K#1,V#1>mkMap(Entry<K#1,V#1>...)
2024-09-18T18:55:07.4793418Z     V#2 extends Object declared in method 
<K#2,V#2>mkEntry(K#2,V#2)
2024-09-18T18:55:07.4794430Z     K#2 extends Object declared in method 
<K#2,V#2>mkEntry(K#2,V#2)
2024-09-18T18:55:07.4795064Z 
2024-09-18T18:55:07.4795309Z > Task :connect:runtime:compileTestJava {code}
 

CI Job: 
[https://github.com/apache/kafka/actions/runs/10928260916/job/30336275918]

 

Logs are attached. 



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

Reply via email to