[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jboss-aop/src/main/org/jboss/aop Instrumentor.java
From: Bill Burke <patriot1burke () users ! sourceforge ! net>
Date: 2003-03-31 21:26:27
[Download RAW message or body]
User: patriot1burke
Date: 03/03/31 13:26:26
Modified: src/main/org/jboss/aop Instrumentor.java
Log:
removed InvocationTargetException from throws clause
Revision Changes Path
1.22 +2 -18 jboss-aop/src/main/org/jboss/aop/Instrumentor.java
Index: Instrumentor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-aop/src/main/org/jboss/aop/Instrumentor.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- Instrumentor.java 28 Mar 2003 00:14:24 -0000 1.21
+++ Instrumentor.java 31 Mar 2003 21:26:25 -0000 1.22
@@ -45,7 +45,7 @@
* @author <a href="mailto:bill@jboss.org">Bill Burke</a>
* @author <a href="mailto:crazybob@crazybob.org">Bob Lee</a>
* @author <a href="mailto:gte863h@prism.gatech.edu">Austin Chau</a>
- * @version $Revision: 1.21 $
+ * @version $Revision: 1.22 $
*/
public class Instrumentor
{
@@ -483,35 +483,19 @@
throws NotFoundException, CannotCompileException, BadBytecode
{
- // create a new exception array "_exceptions" with all the original exception thrown by method
- // and then add java.lang.reflect.InvocationTargetException
CtClass[] exceptions = method.getExceptionTypes();
- CtClass[] _exceptions = new CtClass[exceptions.length + 1];
-
- java.lang.System.arraycopy(exceptions, 0, _exceptions, 0, exceptions.length);
- _exceptions[exceptions.length] = forName("java.lang.reflect.InvocationTargetException");
-
// create base, delegating method.
CtMethod newMethod = CtNewMethod.wrapped(
method.getReturnType(),
name,
method.getParameterTypes(),
- _exceptions,
+ exceptions,
delegate,
CtMethod.ConstParameter.integer(index),
clazz
);
- /*
- // the following two lines are commented out by Austin Chau
- // addCatch() from javassist has bugs
-
- // unwrap invocation target execeptions.
- // newMethod.addCatch(";",forName("java.lang.reflect.InvocationTargetException"), "e");
-
- */
-
// generate bytecode to delegate directly when no aspects are
// present.
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic