--- a/langtools/src/share/classes/com/sun/tools/javac/file/Paths.java Mon Jul 26 14:18:45 2010 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/file/Paths.java Mon Jul 26 14:25:56 2010 -0700
@@ -246,7 +246,8 @@
private void addDirectory(File dir, boolean warn) {
if (!dir.isDirectory()) {
if (warn)
- log.warning("dir.path.element.not.found", dir);
+ log.warning(Lint.LintCategory.PATH,
+ "dir.path.element.not.found", dir);
return;
}
@@ -280,8 +281,10 @@
if (! fsInfo.exists(file)) {
/* No such file or directory exists */
- if (warn)
- log.warning("path.element.not.found", file);
+ if (warn) {
+ log.warning(Lint.LintCategory.PATH,
+ "path.element.not.found", file);
+ }
} else if (fsInfo.isFile(file)) {
/* File is an ordinary file. */
if (!isArchive(file)) {
@@ -290,12 +293,16 @@
try {
ZipFile z = new ZipFile(file);
z.close();
- if (warn)
- log.warning("unexpected.archive.file", file);
+ if (warn) {
+ log.warning(Lint.LintCategory.PATH,
+ "unexpected.archive.file", file);
+ }
} catch (IOException e) {
// FIXME: include e.getLocalizedMessage in warning
- if (warn)
- log.warning("invalid.archive.file", file);
+ if (warn) {
+ log.warning(Lint.LintCategory.PATH,
+ "invalid.archive.file", file);
+ }
return;
}
}