8005056: NPG: Crash after redefining java.lang.Object

Need to walk array class vtables replacing old methods too if j.l.o redefined

Reviewed-by: sspitsyn, dcubed, ctornqvi
This commit is contained in:
Coleen Phillimore 2013-05-13 15:37:08 -04:00
parent 9a1cd52a0f
commit 7a409b13e0
10 changed files with 204 additions and 115 deletions

View file

@ -45,7 +45,9 @@ public class ClassFileInstaller {
// Create the class file's package directory
Path p = Paths.get(pathName);
Files.createDirectories(p.getParent());
if (pathName.contains("/")) {
Files.createDirectories(p.getParent());
}
// Create the class file
Files.copy(is, p, StandardCopyOption.REPLACE_EXISTING);
}