[
https://issues.apache.org/jira/browse/CAMEL-22593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18032485#comment-18032485
]
Thomas Cunningham commented on CAMEL-22593:
-------------------------------------------
I did mvn -DskipTests clean install, Mac OS X Tahoe 26.0.1
{code:java}
openjdk 25 2025-09-16
OpenJDK Runtime Environment Homebrew (build 25)
OpenJDK 64-Bit Server VM Homebrew (build 25, mixed mode, sharing) {code}
{code:java}
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) Maven home:
/Users/tcunning/.m2/wrapper/dists/apache-maven-3.9.9-bin/33b4b2b4/apache-maven-3.9.9
Java version: 25, vendor: Homebrew, runtime:
/opt/homebrew/Cellar/openjdk/25/libexec/openjdk.jdk/Contents/Home Default
locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "26.0.1",
arch: "aarch64", family: "mac"
{code}
> camel-infinispan JDK25 compilation issues
> -----------------------------------------
>
> Key: CAMEL-22593
> URL: https://issues.apache.org/jira/browse/CAMEL-22593
> Project: Camel
> Issue Type: Bug
> Components: camel-infinispan
> Reporter: Thomas Cunningham
> Priority: Major
>
> Getting the following compilation issues trying to compile camel-infinispan
> on JDK 25 (I've gotten this on multiple branches - 4.10.x, main). I do not
> see these issues on JDK 21.
> {code:java}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile
> (default-compile) on project camel-infinispan: Compilation failure:
> Compilation failure:
> [ERROR]
> /Users/tcunning/src/community/camel/components/camel-infinispan/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/remote/InfinispanRemoteAggregationRepository.java:[22,64]
> cannot find symbol
> [ERROR] symbol: class DefaultExchangeHolderContextInitializer
> [ERROR] location: package
> org.apache.camel.component.infinispan.remote.protostream
> [ERROR]
> /Users/tcunning/src/community/camel/components/camel-infinispan/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/remote/InfinispanRemoteAggregationRepository.java:[83,56]
> cannot find symbol
> [ERROR] symbol: class DefaultExchangeHolderContextInitializer
> [ERROR] location: class
> org.apache.camel.component.infinispan.remote.InfinispanRemoteAggregationRepository
> [ERROR]
> /Users/tcunning/src/community/camel/components/camel-infinispan/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/remote/InfinispanRemoteAggregationRepository.java:[89,56]
> cannot find symbol
> [ERROR] symbol: class DefaultExchangeHolderContextInitializer
> [ERROR] location: class
> org.apache.camel.component.infinispan.remote.InfinispanRemoteAggregationRepository
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <args> -rf :camel-infinispan {code}
> The issue looks like it has to do with
> [https://github.com/apache/camel/blob/main/components/camel-infinispan/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/remote/protostream/DefaultExchangeHolderInitializer.java]
> - the class name is DefaultExchangeHolderInitializer but the className in
> the annotation is DefaultExchangeHolderContextInitializer
--
This message was sent by Atlassian Jira
(v8.20.10#820010)