diff options
author | rfield <none@none> | 2013-11-11 16:14:07 -0800 |
---|---|---|
committer | rfield <none@none> | 2013-11-11 16:14:07 -0800 |
commit | a3b3faea5731b7271c7bb25a4a76f9787e72bd10 (patch) | |
tree | 656f77276531c4015f6139ce7e65b22a2043c321 /test | |
parent | 7f9bddd2da025ed87d904c99f067126acdebd39a (diff) |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/testlibrary/ClassFileInstaller.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lib/testlibrary/ClassFileInstaller.java b/test/lib/testlibrary/ClassFileInstaller.java index 694223e77..dd8777b1f 100644 --- a/test/lib/testlibrary/ClassFileInstaller.java +++ b/test/lib/testlibrary/ClassFileInstaller.java @@ -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); } |