提交 49eda07a 编写于 作者: J jjg

7006564: NPE in javac running test/tools/javac/nio/compileTest/CompileTest.java

Reviewed-by: mcimadamore, alanb
上级 ad05d927
......@@ -376,7 +376,8 @@ public class JavacPathFileManager extends BaseFileManager implements PathFileMan
new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
if (SourceVersion.isIdentifier(dir.getName().toString())) // JSR 292?
Path name = dir.getName();
if (name == null || SourceVersion.isIdentifier(name.toString())) // JSR 292?
return FileVisitResult.CONTINUE;
else
return FileVisitResult.SKIP_SUBTREE;
......
......@@ -23,7 +23,7 @@
/**
* @test
* @bug 6906175 6915476 6915497
* @bug 6906175 6915476 6915497 7006564
* @summary Path-based JavaFileManager
* @compile -g HelloPathWorld.java
* @run main CompileTest
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册