[
https://issues.apache.org/jira/browse/CAMEL-22536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18029717#comment-18029717
]
Claus Ibsen commented on CAMEL-22536:
-------------------------------------
Okay so it smells like somehow the maven compiler did not target JDK 17 when
building and releasing. Its build with JDK21 but the compiler can be made to
target JDK17.
> camel-spring-boot - Seems to not support and run on JDK 17
> ----------------------------------------------------------
>
> Key: CAMEL-22536
> URL: https://issues.apache.org/jira/browse/CAMEL-22536
> Project: Camel
> Issue Type: Bug
> Components: camel-spring-boot
> Affects Versions: 4.15.0
> Reporter: Philippe Brossier
> Priority: Minor
> Fix For: 4.16.0
>
>
> We use Java 17 and a few org.apache.camel dependencies. All works OK with
> version 4.14.1. When moving to 4.15.0, there is an issue with
> org.apache.camel.springboot:camel-jackson-starter where we get the following
> exception at startup (our library is plugged into a Spring Boot app):
> Caused by: java.lang.UnsupportedClassVersionError:
> org/apache/camel/spring/boot/CamelVirtualThreadEnvironmentPostProcessor has
> been compiled by a more recent version of the Java Runtime (class file
> version 65.0), this version of the Java Runtime only recognizes class file
> versions up to 61.0
>
> If we revert camel-jackson-starter only to 4.14.1, all works fine.
>
> Raising this issue as https://camel.apache.org/releases/release-4.15.0/ says
> that it supports Java 17 & 21.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)