-
Notifications
You must be signed in to change notification settings - Fork 61
Incorrect semantics of JavacCompiler.isPreJavaXX #356
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
Comments
Actually the |
kwin
added a commit
that referenced
this issue
Feb 1, 2024
Ignore CompilerConfiguration values as they are unreliable (and don't represent the used javac version) Make test execution more resilient by interpolating settings.xml correctly and make sure commons-lang 2.0 is resolved prior to unit testing This closes #356
kwin
added a commit
that referenced
this issue
Feb 1, 2024
Ignore CompilerConfiguration values as they are unreliable (and don't represent the used javac version) Make test execution more resilient by interpolating settings.xml correctly and make sure commons-lang 2.0 is resolved prior to unit testing This closes #356
kwin
added a commit
that referenced
this issue
Feb 3, 2024
Ignore and deprecate CompilerConfiguration values as they are unreliable (and don't represent the used javac version) Make test execution more resilient by interpolating settings.xml correctly and make sure commons-lang 2.0 is resolved prior to unit testing This closes #356
kwin
added a commit
to apache/maven-compiler-plugin
that referenced
this issue
Feb 24, 2024
This is no longer evaluated in plexus-compiler-javac (codehaus-plexus/plexus-compiler#356). It was never used by any other plexus compilers in the past.
8 tasks
kwin
added a commit
to apache/maven-compiler-plugin
that referenced
this issue
Feb 24, 2024
This is no longer evaluated in plexus-compiler-javac (codehaus-plexus/plexus-compiler#356). It was never used by any other plexus compilers in the past.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the javadoc of
plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
Line 410 in c5edddc
plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
Line 393 in c5edddc
isPreJavaXX
are supposed toThe logic within those methods evaluates partially also the parameter
source
(plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
Line 418 in c5edddc
release
(plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
Line 435 in c5edddc
However I am not sure when
CompilerConfiguration.getCompilerVersion()
is reliably set at all. IMHO there should be some logic separate for in-process and forked compiling which determines the realjavac
version (either from system propertyjava.version
for in-process compilation or the parsed output ofjavac -version
)The text was updated successfully, but these errors were encountered: