jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Phillips (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-427) Upgrading JDK from 1.7.0_45 to 1.7.0_51 causes problems when searching for interface implementations
Date Fri, 17 Jan 2014 18:38:20 GMT

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

Andrew Phillips commented on JCLOUDS-427:
-----------------------------------------

OK, Guava 15.0 bug. This:

{code}
   public static <K, V> TypeToken<Map<K, V>> mapOf(
       TypeToken<K> keyType, TypeToken<V> valueType) {
     return new TypeToken<Map<K, V>>() {}
         .where(new TypeParameter<K>() {}, keyType)
         .where(new TypeParameter<V>() {}, valueType);
   }
{code}

(the 'where' code example in the Guava Javadoc) fails:

{code}
Printing Guava sample for 'where': java.util.Map<java.lang.String, V>
{code}

> Upgrading JDK from 1.7.0_45 to 1.7.0_51 causes problems when searching for interface
implementations
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JCLOUDS-427
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-427
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-core
>    Affects Versions: 1.7.0, 1.6.3
>            Reporter: graham o'regan
>
> Upgrading JDK from 1.7.0_45 to 1.7.0_51 causes problems when searching for interface
implementations
> Running 'mvn test' results in test failures similar to this;
> {code}
> Caused by: com.google.inject.CreationException: Guice creation errors:
> 1) org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.rest.HttpClient,
A> cannot be used as a key; It is not fully specified.
> 2) org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.http.IntegrationTestClient,
A> cannot be used as a key; It is not fully specified.
> 3) org.jclouds.rest.RestContext<org.jclouds.http.IntegrationTestClient, A> cannot
be used as a key; It is not fully specified.
> 4) No implementation for org.jclouds.rest.HttpClient was bound.
>   at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106)
> 5) No implementation for org.jclouds.http.IntegrationTestClient was bound.
>   at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106)
> {code}
> I've tested using OpenJDK on Centos 6.4 and Oracle JDK on OS X 10.9 with the same results.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message