-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 with Java 8 and maven-compiler-plugin using onX with Annotations with parameters #1317
Comments
According @rzwitserloot answer in referenced issue, looks like it is a problem of |
No, it is a problem with jdk8's javac |
I don't think we need this duplicate issue. |
@rspilker @rzwitserloot But in this case why everything is working fine if I am not using
So looks like it is not a problem of Javac. |
We reproduced it using stock javac off of the command line, so, it IS a problem with javac8. |
I have the simple DTO class
Simple test annotation
And Main class with main method with
My POM file has 1 dependency and 1 plugin - maven-compiler-plugin
When I try to run main method I get
If I am not using
maven-compiler-plugin
- everything works fine, if I set<source>1.7</source><target>1.7</target>
in plugin configuration - works fine.So the problem is about Java 8 and maven-compiler-plugin.
If I use
@Getter(onMethod = @__(@TestAnnotation("testParam")))
or@Getter(onMethod = @__(@TestAnnotation))
- works fine. The problem occours only with named parameters for annotations.The text was updated successfully, but these errors were encountered: