From 5b7f8857037a9fd931ef1d6171fee6e7f2f0ec2e Mon Sep 17 00:00:00 2001 From: chiba Date: Mon, 16 May 2005 14:53:51 +0000 Subject: 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 --- src/main/javassist/expr/MethodCall.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/javassist/expr/MethodCall.java') 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; } /** -- cgit v1.2.3