-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b03
-
generic
-
generic
-
Verified
Confusing help message with compiler API.
<src>
import java.util.Arrays;
import javax.tools.*;
public class T6423003 {
public static void main(String... arg) throws Throwable {
JavaCompiler javac = ToolProvider.getSystemJavaCompiler();
javac.getTask(null, null, null, Arrays.asList("-Xlint:all"), null, null).call();
}
}
</src>
output of the message:
<output>
bash-3.00$ java T6423003
javacTask: no source files
^^^^^^^^^
Usage: javacTask <options> <source files>
use -help for a list of possible options
</output>
There is some inconsistency between running through command line and running through compiler API also javacTask will be confusing to the user since its more of internal name.
<src>
import java.util.Arrays;
import javax.tools.*;
public class T6423003 {
public static void main(String... arg) throws Throwable {
JavaCompiler javac = ToolProvider.getSystemJavaCompiler();
javac.getTask(null, null, null, Arrays.asList("-Xlint:all"), null, null).call();
}
}
</src>
output of the message:
<output>
bash-3.00$ java T6423003
javacTask: no source files
^^^^^^^^^
Usage: javacTask <options> <source files>
use -help for a list of possible options
</output>
There is some inconsistency between running through command line and running through compiler API also javacTask will be confusing to the user since its more of internal name.
- relates to
-
JDK-6437349 JSR 199: JavaFileObject.isNameCompatible() will give true with some incompatible kinds
-
- Closed
-