aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPool.java
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2017-06-01 22:46:39 +0900
committerchibash <chiba@javassist.org>2017-06-01 22:46:39 +0900
commitdfd0733e1f73853453ff76086481ebec2e88a624 (patch)
tree267e33ac3f8c053f5a83d9fb934ca75c938c8a8a /src/main/javassist/ClassPool.java
parentab117a9fe31902167b9a74fee1982068e4c4d095 (diff)
downloadjavassist-dfd0733e1f73853453ff76086481ebec2e88a624.tar.gz
javassist-dfd0733e1f73853453ff76086481ebec2e88a624.zip
modifies CtClass#setModifiers() to correctly support inner classes.
Diffstat (limited to 'src/main/javassist/ClassPool.java')
-rw-r--r--src/main/javassist/ClassPool.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java
index 4be35b5f..89a0067e 100644
--- a/src/main/javassist/ClassPool.java
+++ b/src/main/javassist/ClassPool.java
@@ -864,7 +864,7 @@ public class ClassPool {
*/
synchronized CtClass makeNestedClass(String classname) {
checkNotFrozen(classname);
- CtClass clazz = new CtNewNestedClass(classname, this, false, null);
+ CtClass clazz = new CtNewClass(classname, this, false, null);
cacheCtClass(classname, clazz, true);
return clazz;
}