[
https://issues.apache.org/jira/browse/CURATOR-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15991786#comment-15991786
]
Dmitry commented on CURATOR-403:
--------------------------------
[~randgalt], sorry, I am probably misunderstanding what you mean here but isn't
shading Guava a recipe for disaster? If application brings curator and Guava as
a dependency then it will have have two different versions available and then
it will be at the mercy of the classloader - whichever version is loaded first,
wins.
> Curator framework incompatible with guava 21
> --------------------------------------------
>
> Key: CURATOR-403
> URL: https://issues.apache.org/jira/browse/CURATOR-403
> Project: Apache Curator
> Issue Type: Bug
> Components: Framework
> Affects Versions: 3.3.0, 2.12.0
> Reporter: Vladimir Dergachev
>
> Guava version 21 incompatible with curator framework. Now it uses version
> 16.0.1 of guava, and compatible up to version 20 inclusive. To reproduce a
> problem just put 21 version in dependencies management and you will get
> message like this in runtime.
> {code}
> Caused by: java.lang.NoSuchMethodError:
> com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor()Lcom/google/common/util/concurrent/ListeningExecutorService;
> at
> org.apache.curator.framework.listen.ListenerContainer.addListener(ListenerContainer.java:41)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)