2.8.9-ea-1 compilation error on Java 11
See original GitHub issueThis simplified definition:
@Value.Style(jdkOnly = true)
@Value.Immutable(copy = false)
public interface ValidationErrorDetails extends ErrorDetails {
@Value.Parameter
List<ValidationErrorMessage> getValidationErrors();
}
Raises a compilation error:
[ERROR] .../target/generated-sources/annotations/.../errors/ImmutableValidationErrorDetails.java:[37,33] method copyOf in interface java.util.List<E> cannot be applied to given types;
required: java.util.Collection<? extends E>
found: java.lang.Iterable<capture#1 of ? extends ...errors.ValidationErrorMessage>
reason: cannot infer type-variable(s) E
(argument mismatch; java.lang.Iterable<capture#1 of ? extends ...errors.ValidationErrorMessage> cannot be converted to java.util.Collection<? extends E>)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:18 (18 by maintainers)
Top Results From Across the Web
How to fix compilation failure java 11 Idea - Stack Overflow
How to fix compilation failure java 11 Idea · 1. The java version can be specified in the pom. · check what is...
Read more >Compiler errors on java 11 #2144 - google/dagger - GitHub
This error is from BasicAnnotationProcessor. It basically means that Dagger couldn't process some class because a symbol referenced in that ...
Read more >JDK-8142443 Error compiling generated web classes ... - Bug ID
We get a compilation error in :web:compileGenerated task using gradle 2.8 when building the JavaFX sdk with "-PCOMPILE_WEBKIT=true", which builds the native ...
Read more >AEM 6.5.2 compilation errors with JDK 11
Solved: Hi - We are getting Code compilation errors as Failed to execute goal org.apache.felix:maven-scr-plugin:1.25.0:scr - 321359.
Read more >JDK 11: Compilation failed due to internal java compiler error
JDK 11: Compilation failed due to internal java compiler error ... this sample can be successful compiled using Maven(JDK11) command "mvn clean compile"....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll do the release when return from the business trip, Saturday or Sunday, I see there are some PR to review and merge too. Thank you!
Only a quick test, but fwiw compiles in a project with java11 where 2.8.9-ea-1 had issues, no regressions observed in unit tests so far ☑️