提交 6bd5144f 编写于 作者: R rfield

8027803: test/sun/reflect/AnonymousNewInstance/ManyNewInstanceAnonTest.java fails

Summary: fix NPE in test infrastructure
Reviewed-by: ksrini, jfranck, alanb, rfield
Contributed-by: alan.bateman@oracle.com
上级 d5eb9e71
......@@ -45,7 +45,10 @@ public class ClassFileInstaller {
// Create the class file's package directory
Path p = Paths.get(pathName);
Files.createDirectories(p.getParent());
Path parent = p.getParent();
if (parent != null) {
Files.createDirectories(parent);
}
// Create the class file
Files.copy(is, p, StandardCopyOption.REPLACE_EXISTING);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册