提交 17b10593 编写于 作者: D darcy

6871291: Please clarify javax.tools.JavaCompiler.getTask() "classes" parameter

Reviewed-by: jjg
上级 012cf1c3
...@@ -228,6 +228,12 @@ public interface JavaCompiler extends Tool, OptionChecker { ...@@ -228,6 +228,12 @@ public interface JavaCompiler extends Tool, OptionChecker {
* <p>If a file manager is provided, it must be able to handle all * <p>If a file manager is provided, it must be able to handle all
* locations defined in {@link StandardLocation}. * locations defined in {@link StandardLocation}.
* *
* <p>Note that annotation processing can process both the
* compilation units of source code to be compiled, passed with
* the {@code compilationUnits} parameter, as well as class
* files, whose names are passed with the {@code classes}
* parameter.
*
* @param out a Writer for additional output from the compiler; * @param out a Writer for additional output from the compiler;
* use {@code System.err} if {@code null} * use {@code System.err} if {@code null}
* @param fileManager a file manager; if {@code null} use the * @param fileManager a file manager; if {@code null} use the
...@@ -236,8 +242,8 @@ public interface JavaCompiler extends Tool, OptionChecker { ...@@ -236,8 +242,8 @@ public interface JavaCompiler extends Tool, OptionChecker {
* null} use the compiler's default method for reporting * null} use the compiler's default method for reporting
* diagnostics * diagnostics
* @param options compiler options, {@code null} means no options * @param options compiler options, {@code null} means no options
* @param classes class names (for annotation processing), {@code * @param classes names of classes to be processed by annotation
* null} means no class names * processing, {@code null} means no class names
* @param compilationUnits the compilation units to compile, {@code * @param compilationUnits the compilation units to compile, {@code
* null} means no compilation units * null} means no compilation units
* @return an object representing the compilation * @return an object representing the compilation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册