OpenJDK / jdk / jdk10
changeset 21648:b485e4eb2fd9
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
author | rfield |
---|---|
date | Mon, 11 Nov 2013 16:14:07 -0800 |
parents | d1825822d9a0 |
children | 1aca56f8780c |
files | jdk/test/lib/testlibrary/ClassFileInstaller.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/test/lib/testlibrary/ClassFileInstaller.java Mon Nov 11 14:35:36 2013 -0800 +++ b/jdk/test/lib/testlibrary/ClassFileInstaller.java Mon Nov 11 16:14:07 2013 -0800 @@ -45,7 +45,10 @@ // 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); }