Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on JDK11+ [DATAES-945] #1519

spring-projects-issues opened this issue Oct 8, 2020 · 0 comments

Compilation error on JDK11+ [DATAES-945] #1519

spring-projects-issues opened this issue Oct 8, 2020 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Oct 8, 2020

sothawo opened DATAES-945 and commented

After the change of DATAES-921 build on JDK11+ fail with a compile error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (java-compile) on project spring-data-elasticsearch: Compilation failure
[ERROR] /spring-data-elasticsearch/src/main/java/org/springframework/data/elasticsearch/client/reactive/[614,18] error: incompatible types: inferred type does not conform to lower bound(s)
[ERROR]     inferred: CAP#1
[ERROR]     lower bound(s): Resp
[ERROR]   where T,Resp are type-variables:
[ERROR]     T extends Object declared in method <T>readResponseBody(String,Request,ClientResponse,Class<T>)
[ERROR]     Resp extends Object declared in method <Resp>sendRequest(Request,Class<Resp>,HttpHeaders)
[ERROR]   where CAP#1 is a fresh type-variable:
[ERROR]     CAP#1 extends Resp from capture of ? extends T

Referenced from: pull request #533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant