6871291: Please clarify javax.tools.JavaCompiler.getTask() "classes" parameter
authordarcy
Wed, 19 Aug 2009 17:12:36 -0700
changeset 3659 7c9f033e5232
parent 3658 8ee720a52b7d
child 3660 ee583c342a41
6871291: Please clarify javax.tools.JavaCompiler.getTask() "classes" parameter Reviewed-by: jjg
langtools/src/share/classes/javax/tools/JavaCompiler.java
--- a/langtools/src/share/classes/javax/tools/JavaCompiler.java	Wed Aug 19 20:44:22 2009 +0100
+++ b/langtools/src/share/classes/javax/tools/JavaCompiler.java	Wed Aug 19 17:12:36 2009 -0700
@@ -228,6 +228,12 @@
      * <p>If a file manager is provided, it must be able to handle all
      * 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;
      * use {@code System.err} if {@code null}
      * @param fileManager a file manager; if {@code null} use the
@@ -236,8 +242,8 @@
      * null} use the compiler's default method for reporting
      * diagnostics
      * @param options compiler options, {@code null} means no options
-     * @param classes class names (for annotation processing), {@code
-     * null} means no class names
+     * @param classes names of classes to be processed by annotation
+     * processing, {@code null} means no class names
      * @param compilationUnits the compilation units to compile, {@code
      * null} means no compilation units
      * @return an object representing the compilation