diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-11-23 02:49:04 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-11-23 02:49:04 +0000 |
commit | 43a08a3a82916abdddd870752823c13bbb91ed0e (patch) | |
tree | 8948983d5ba5c48350617f573686944e50b7b1eb /src/main/javassist/CodeConverter.java | |
parent | 4f6352718e35fae2ad15745e16c05768882a17f9 (diff) | |
download | javassist-43a08a3a82916abdddd870752823c13bbb91ed0e.tar.gz javassist-43a08a3a82916abdddd870752823c13bbb91ed0e.zip |
added CtBehavior.getLongName()
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@336 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CodeConverter.java')
-rw-r--r-- | src/main/javassist/CodeConverter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/javassist/CodeConverter.java b/src/main/javassist/CodeConverter.java index 1c8cf2f6..d9a18453 100644 --- a/src/main/javassist/CodeConverter.java +++ b/src/main/javassist/CodeConverter.java @@ -224,7 +224,8 @@ public class CodeConverter { String d1 = origMethod.getMethodInfo2().getDescriptor(); String d2 = substMethod.getMethodInfo2().getDescriptor(); if (!d1.equals(d2)) - throw new CannotCompileException("signature mismatch"); + throw new CannotCompileException("signature mismatch: " + + substMethod.getLongName()); int mod1 = origMethod.getModifiers(); int mod2 = substMethod.getModifiers(); @@ -232,7 +233,8 @@ public class CodeConverter { || (Modifier.isPrivate(mod1) && !Modifier.isPrivate(mod2)) || origMethod.getDeclaringClass().isInterface() != substMethod.getDeclaringClass().isInterface()) - throw new CannotCompileException("invoke-type mismatch"); + throw new CannotCompileException("invoke-type mismatch " + + substMethod.getLongName()); transformers = new TransformCall(transformers, origMethod, substMethod); |