From e057bbef56510c2fb8b850c27ef4217ff7bd602d Mon Sep 17 00:00:00 2001 From: chiba Date: Sun, 14 Mar 2004 17:15:16 +0000 Subject: 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 --- src/main/javassist/CtNewWrappedMethod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/javassist/CtNewWrappedMethod.java') 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); -- cgit v1.2.3