[
https://issues.apache.org/jira/browse/KAFKA-20046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-20046.
------------------------------------
Resolution: Fixed
trunk:
[https://github.com/apache/kafka/commit/c7800041c66d12124595ae5bce0292007b3c8256]
4.2:
[https://github.com/apache/kafka/commit/9f9cc21130e2593f8d139a95ce13544950084994]
4.1:
[https://github.com/apache/kafka/commit/7848608e612d7eb6c341b786cacd79ade2fa0e1a]
4.0:
https://github.com/apache/kafka/commit/6eca02363d27c2a5eadf8c0a2326d818d7a628c6
> streams-scala artifact is compiled with java 17 instead of 11.
> --------------------------------------------------------------
>
> Key: KAFKA-20046
> URL: https://issues.apache.org/jira/browse/KAFKA-20046
> Project: Kafka
> Issue Type: Bug
> Components: streams
> Affects Versions: 4.0.0
> Reporter: Nikita Shupletsov
> Assignee: Nikita Shupletsov
> Priority: Blocker
> Fix For: 4.2.0, 4.0.2, 4.1.2
>
>
> As a community member of stackoverflow pointed out:
> [https://stackoverflow.com/questions/79857077/kafka-streams-4-x-java-11-compatibility]
> I verified the classes from
> [https://mvnrepository.com/artifact/org.apache.kafka/kafka-streams-scala_2.13/4.0.0]
> with javap, and it was indeed compiled with 61 version(java17) instead of
> 55(java11)
> also wrote a simple scala app and got the same error: `Exception in thread
> "sbt-bg-threads-1" java.lang.UnsupportedClassVersionError:
> org/apache/kafka/streams/scala/StreamsBuilder has been compiled by a more
> recent version of the Java Runtime (class file version 61.0), this version of
> the Java Runtime only recognizes class file versions up to 55.0`
--
This message was sent by Atlassian Jira
(v8.20.10#820010)