question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.8.9-ea-1 compilation error on Java 11

See original GitHub issue

This 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
elucashcommented, Mar 25, 2021

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!

1reaction
dmivankovcommented, Apr 20, 2021

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 ☑️

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found