You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2025/12/24 09:10:00 UTC

[jira] [Resolved] (CAMEL-22593) camel-infinispan JDK25 compilation issues

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

Claus Ibsen resolved CAMEL-22593.
---------------------------------
    Fix Version/s: 4.17.0
                       (was: 4.x)
       Resolution: Fixed

> camel-infinispan JDK25 compilation issues
> -----------------------------------------
>
>                 Key: CAMEL-22593
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22593
>             Project: Camel
>          Issue Type: Dependency upgrade
>          Components: camel-infinispan
>            Reporter: Thomas Cunningham
>            Priority: Major
>             Fix For: 4.17.0
>
>
> 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)