aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/expr/MethodCall.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-05-16 14:53:51 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-05-16 14:53:51 +0000
commit5b7f8857037a9fd931ef1d6171fee6e7f2f0ec2e (patch)
tree82492226c90fe719a9d6c606de9ad83e61608c9a /src/main/javassist/expr/MethodCall.java
parentd555274962db5f50c330c735a1b396376faa4891 (diff)
downloadjavassist-5b7f8857037a9fd931ef1d6171fee6e7f2f0ec2e.tar.gz
javassist-5b7f8857037a9fd931ef1d6171fee6e7f2f0ec2e.zip
Changed ClassPool.get() to accept the descriptors of array types.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@170 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/expr/MethodCall.java')
-rw-r--r--src/main/javassist/expr/MethodCall.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/javassist/expr/MethodCall.java b/src/main/javassist/expr/MethodCall.java
index 3bd7d098..ded74e0c 100644
--- a/src/main/javassist/expr/MethodCall.java
+++ b/src/main/javassist/expr/MethodCall.java
@@ -93,7 +93,10 @@ public class MethodCall extends Expr {
else
cname = cp.getMethodrefClassName(index);
- return cname;
+ if (cname.charAt(0) == '[')
+ cname = Descriptor.toClassName(cname);
+
+ return cname;
}
/**