wilx commented on code in PR #1092:
URL: 
https://github.com/apache/maven-compiler-plugin/pull/1092#discussion_r3669092453


##########
src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java:
##########
@@ -109,6 +109,10 @@ public class CompilerMojo extends AbstractCompilerMojo {
 
     /**
      * A list of exclusion filters for the compiler.
+     * A file such as {@code module-info.java} may still be compiled if it is 
implicitly referenced by the compiler,

Review Comment:
   This is described in 
<https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#searching-for-module-package-and-type-declarations>.
 The relevant lines are 
   
   > When compiling code for a module, the compiler also needs to have 
available the declaration of that module.
   > A successful search may produce a class file, a source file, or both. If 
both are found, then you can use the 
[-Xprefer](https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#option-Xprefer)
 option to instruct the compiler which to use.
   > If a search finds and uses a source file, then by default javac compiles 
that source file. This behavior can be altered with 
[-implicit](https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#option-implicit).
   
   Feel free to suggest better wording.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to