aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtNewWrappedMethod.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-03-14 17:15:16 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-03-14 17:15:16 +0000
commite057bbef56510c2fb8b850c27ef4217ff7bd602d (patch)
tree9fdefd76ab8b9be8f448a083fbca72d274fcece0 /src/main/javassist/CtNewWrappedMethod.java
parent805dd3c4f866a2840dcb7346983aa9135b8687d1 (diff)
downloadjavassist-e057bbef56510c2fb8b850c27ef4217ff7bd602d.tar.gz
javassist-e057bbef56510c2fb8b850c27ef4217ff7bd602d.zip
changed to throw an exception if a duplicate method/field is added.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@73 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtNewWrappedMethod.java')
-rw-r--r--src/main/javassist/CtNewWrappedMethod.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/CtNewWrappedMethod.java b/src/main/javassist/CtNewWrappedMethod.java
index 71f6287f..d960eb3c 100644
--- a/src/main/javassist/CtNewWrappedMethod.java
+++ b/src/main/javassist/CtNewWrappedMethod.java
@@ -131,7 +131,7 @@ class CtNewWrappedMethod {
private static String addBodyMethod(CtClassType clazz,
ClassFile classfile,
CtMethod src)
- throws BadBytecode
+ throws BadBytecode, CannotCompileException
{
Hashtable bodies = clazz.getHiddenMethods();
String bodyname = (String)bodies.get(src);