jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beena Bhatt (Jira)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-1225) Guava 21 compatibility
Date Mon, 16 Sep 2019 16:52:00 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16930695#comment-16930695
] 

Beena Bhatt commented on JCLOUDS-1225:
--------------------------------------

[~tpeierls] which version of jdk and jre are you using. With the combination of jdk 8 and
jre 11 we get the issue of 

*Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.net.HostAndPort.getHostText()Ljava/lang/String*

> Guava 21 compatibility
> ----------------------
>
>                 Key: JCLOUDS-1225
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1225
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-core
>    Affects Versions: 2.0.0
>            Reporter: Ian Springer
>            Assignee: Andrew Gaul
>            Priority: Major
>              Labels: guava
>             Fix For: 2.1.0
>
>
> The below classes use com.google.common.base.Objects.ToStringHelper, which has been deprecated
since Guava 18, and has been removed in Guava 21. This makes it impossible to use jclouds
in a project using Guava 21. Please either upgrade to Guava 18+ and switch to using com.google.common.base.MoreObjects.ToStringHelper,
or drop the usage of ToStringHelper altogether. This will allow my project to upgrade to Guava
21 without having to use a fork of jclouds.
> * org/jclouds/apis/internal/BaseApiMetadata.java
> * org/jclouds/domain/internal/LocationImpl.java
> * org/jclouds/domain/internal/MutableResourceMetadataImpl.java
> * org/jclouds/domain/internal/ResourceMetadataImpl.java
> * org/jclouds/http/HttpMessage.java
> * org/jclouds/http/HttpRequest.java
> * org/jclouds/http/HttpResponse.java
> * org/jclouds/internal/BaseView.java
> * org/jclouds/providers/internal/BaseProviderMetadata.java
> * org/jclouds/reflect/InvocationSuccess.java
> * org/jclouds/rest/internal/BaseHttpApiMetadata.java
> * org/jclouds/rest/suppliers/URIFromStringSupplier.java



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message