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

JavacCompiler uses the wrong heuristic for configuring annotation processing #59

Open
gilday opened this issue Dec 4, 2018 · 0 comments

Comments

@gilday
Copy link

gilday commented Dec 4, 2018

The JavacCompiler class will not configure annotation processing if the source version is < 1.6, regardless of the JDK version in use. The impact to JDK 1.6+ systems which are configured to source version 1.5 is that JavacCompiler will ignore the generated sources configurations and javac will process annotations using its default conventions.

In my environment, I am using Maven with JDK 1.8 and targeting Java 1.5 source. I would expect sources generated by annotation processors to be generated in the maven-compiler-plugin default generated sources directory (${project.build.directory}/generated-sources/annotations), but plexus-compiler never passes the -s flag to javac so the sources are instead generated in ${project.build.outputDirectory}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant