Mercurial > hg > truffle
comparison test/testlibrary/ClassFileInstaller.java @ 10268:43083e670adf
8005056: NPG: Crash after redefining java.lang.Object
Summary: Need to walk array class vtables replacing old methods too if j.l.o redefined
Reviewed-by: sspitsyn, dcubed, ctornqvi
author | coleenp |
---|---|
date | Mon, 13 May 2013 15:37:08 -0400 |
parents | 1b0dc9f87e75 |
children |
comparison
equal
deleted
inserted
replaced
10267:8b40495b9381 | 10268:43083e670adf |
---|---|
43 String pathName = arg.replace('.', '/').concat(".class"); | 43 String pathName = arg.replace('.', '/').concat(".class"); |
44 InputStream is = cl.getResourceAsStream(pathName); | 44 InputStream is = cl.getResourceAsStream(pathName); |
45 | 45 |
46 // Create the class file's package directory | 46 // Create the class file's package directory |
47 Path p = Paths.get(pathName); | 47 Path p = Paths.get(pathName); |
48 Files.createDirectories(p.getParent()); | 48 if (pathName.contains("/")) { |
49 Files.createDirectories(p.getParent()); | |
50 } | |
49 // Create the class file | 51 // Create the class file |
50 Files.copy(is, p, StandardCopyOption.REPLACE_EXISTING); | 52 Files.copy(is, p, StandardCopyOption.REPLACE_EXISTING); |
51 } | 53 } |
52 } | 54 } |
53 } | 55 } |