mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
9a1cd52a0f
commit
7a409b13e0
10 changed files with 204 additions and 115 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue