aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtArray.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-05-15 14:50:12 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-05-15 14:50:12 +0000
commitb8af5440324850f846b918d05faa256310803204 (patch)
treec86f87452dd9e4af61f548dce29fb842187e9fd8 /src/main/javassist/CtArray.java
parent8133161cb622bb6de1f5cc8f128e9b7a8c1a3613 (diff)
downloadjavassist-b8af5440324850f846b918d05faa256310803204.tar.gz
javassist-b8af5440324850f846b918d05faa256310803204.zip
fixed JIRA JASSIST-112
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@545 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtArray.java')
-rw-r--r--src/main/javassist/CtArray.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/javassist/CtArray.java b/src/main/javassist/CtArray.java
index 55925483..92ca85e9 100644
--- a/src/main/javassist/CtArray.java
+++ b/src/main/javassist/CtArray.java
@@ -35,6 +35,26 @@ final class CtArray extends CtClass {
return true;
}
+ private CtClass[] interfaces = null;
+
+ public int getModifiers() {
+ int mod = Modifier.FINAL;
+ try {
+ mod |= getComponentType().getModifiers()
+ & (Modifier.PROTECTED | Modifier.PUBLIC | Modifier.PRIVATE);
+ }
+ catch (NotFoundException e) {}
+ return mod;
+ }
+
+ public CtClass[] getInterfaces() throws NotFoundException {
+ if (interfaces == null)
+ interfaces = new CtClass[] {
+ pool.get("java.lang.Cloneable"), pool.get("java.io.Serializable") };
+
+ return interfaces;
+ }
+
public boolean subtypeOf(CtClass clazz) throws NotFoundException {
if (super.subtypeOf(clazz))
return true;