[
https://issues.apache.org/jira/browse/JCLOUDS-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16451729#comment-16451729
]
Richard Janík commented on JCLOUDS-1413:
----------------------------------------
[~gaul] Reading through JCLOUDS-1333 I see that the getHost problem has already
been raised. Feel free to close this as a duplicate of JCLOUDS-1333 if you want
to, and thanks for the pointers.
FWIW, we would be fine with dropping support for older JDKs ( <8 ) and Guava
versions. I'm on the jclouds-apache mailing list but not on the dev one. Not a
contributor, so I don't believe I belong :).
> Guava 22 compatibility - HostAndPort.getHostText() has been removed
> -------------------------------------------------------------------
>
> Key: JCLOUDS-1413
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1413
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-core
> Affects Versions: 2.1.0
> Reporter: Richard Janík
> Priority: Major
>
> I've run into incompatibility between JClouds and Guava 22.0 when using the
> {{org.jclouds.compute.util.OpenSocketFinder}}.
> {{OpenSocketFinder}} is implemented by {{ConcurrentOpenSocketFinder}} which
> uses {{InetSocketAddressConnect}} to find the open ports on a host. That
> class uses Guavas {{HostAndPort}} which, in Guava 18.0, has the
> {{getHostText()}} method to get the host name. This method has been
> deprecated in later versions and removed in Guava 22.0, in favor of
> {{getHost()}}.
> The bad news is that I don't see a way to get the host name that would be
> universal between Guava 18.0 and Guava 22.0, so I don't know how to fix this
> in JClouds short of a Guava update.
> For us, the solution is to use Guava 21.0, which is no big issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)