You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "William L Thomson Jr (JIRA)" <ji...@apache.org> on 2016/11/07 16:55:59 UTC
[jira] [Updated] (JCLOUDS-1194) Java 1.8 compilation issue
[ https://issues.apache.org/jira/browse/JCLOUDS-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
William L Thomson Jr updated JCLOUDS-1194:
------------------------------------------
Description:
Correction, not a guava issue but Java 1.8, seems to be the only one
Oracle JDK 1.8.0_102
src/main/java/org/jclouds/rest/internal/TransformerForRequest.java:88: error: method create in interface Factory cannot be applied to given types;
transformer = parserFactory.create(injector.getInstance(handler));
^
required: HandlerWithResult<T#1>
found: CAP#1
reason: inference variable T#2 has incompatible bounds
equality constraints: CAP#2
upper bounds: HandlerWithResult<CAP#3>,Object
where T#1,T#2 are type-variables:
T#1 extends Object declared in method <T#1>create(HandlerWithResult<T#1>)
T#2 extends Object declared in method <T#2>getInstance(Class<T#2>)
where CAP#1,CAP#2,CAP#3 are fresh type-variables:
CAP#1 extends HandlerWithResult<?> from capture of ? extends HandlerWithResult<?>
CAP#2 extends HandlerWithResult<?> from capture of ? extends HandlerWithResult<?>
CAP#3 extends Object from capture of ?
was:
Oracle JDK 1.8.0_102, Guava 20
src/main/java/org/jclouds/rest/internal/TransformerForRequest.java:88: error: method create in interface Factory cannot be applied to given types;
transformer = parserFactory.create(injector.getInstance(handler));
^
required: HandlerWithResult<T#1>
found: CAP#1
reason: inference variable T#2 has incompatible bounds
equality constraints: CAP#2
upper bounds: HandlerWithResult<CAP#3>,Object
where T#1,T#2 are type-variables:
T#1 extends Object declared in method <T#1>create(HandlerWithResult<T#1>)
T#2 extends Object declared in method <T#2>getInstance(Class<T#2>)
where CAP#1,CAP#2,CAP#3 are fresh type-variables:
CAP#1 extends HandlerWithResult<?> from capture of ? extends HandlerWithResult<?>
CAP#2 extends HandlerWithResult<?> from capture of ? extends HandlerWithResult<?>
CAP#3 extends Object from capture of ?
Summary: Java 1.8 compilation issue (was: Guava 20 compilation issue)
> Java 1.8 compilation issue
> --------------------------
>
> Key: JCLOUDS-1194
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1194
> Project: jclouds
> Issue Type: Bug
> Reporter: William L Thomson Jr
> Labels: guava
>
> Correction, not a guava issue but Java 1.8, seems to be the only one
> Oracle JDK 1.8.0_102
> src/main/java/org/jclouds/rest/internal/TransformerForRequest.java:88: error: method create in interface Factory cannot be applied to given types;
> transformer = parserFactory.create(injector.getInstance(handler));
> ^
> required: HandlerWithResult<T#1>
> found: CAP#1
> reason: inference variable T#2 has incompatible bounds
> equality constraints: CAP#2
> upper bounds: HandlerWithResult<CAP#3>,Object
> where T#1,T#2 are type-variables:
> T#1 extends Object declared in method <T#1>create(HandlerWithResult<T#1>)
> T#2 extends Object declared in method <T#2>getInstance(Class<T#2>)
> where CAP#1,CAP#2,CAP#3 are fresh type-variables:
> CAP#1 extends HandlerWithResult<?> from capture of ? extends HandlerWithResult<?>
> CAP#2 extends HandlerWithResult<?> from capture of ? extends HandlerWithResult<?>
> CAP#3 extends Object from capture of ?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)