diff options
Diffstat (limited to 'src/test/javassist')
-rw-r--r-- | src/test/javassist/JvstTest5.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest5.java b/src/test/javassist/JvstTest5.java index b0cbbcca..ec8ff66a 100644 --- a/src/test/javassist/JvstTest5.java +++ b/src/test/javassist/JvstTest5.java @@ -440,4 +440,17 @@ public class JvstTest5 extends JvstTestRoot { assertTrue(names[0].equals("test5.NestHost$Foo") || names[0].equals("test5.NestHost$Bar")); assertTrue(names[1].equals("test5.NestHost$Foo") || names[1].equals("test5.NestHost$Bar")); } + + public void testNestMembersAttributeCopy() throws Exception { + CtClass cc = sloader.get("test5.NestHost2"); + cc.getClassFile().compact(); + cc.writeFile(); + make(cc.getName()); + } + + public void testNestHostAttributeCopy() throws Exception { + CtClass cc = sloader.get("test5.NestHost2$Foo"); + cc.getClassFile().compact(); + cc.toClass(); + } } |