[jboss-cvs] JBossAS SVN: r62761 - projects/aop/trunk/aop/src/test/org/jboss/test/aop/beforeafter.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 2 16:59:34 EDT 2007
Author: flavia.rainone at jboss.com
Date: 2007-05-02 16:59:34 -0400 (Wed, 02 May 2007)
New Revision: 62761
Modified:
projects/aop/trunk/aop/src/test/org/jboss/test/aop/beforeafter/ArgsAspect.java
Log:
[JBAOP-37] Invalidate advices that should return void and dont' do this.
Modified: projects/aop/trunk/aop/src/test/org/jboss/test/aop/beforeafter/ArgsAspect.java
===================================================================
--- projects/aop/trunk/aop/src/test/org/jboss/test/aop/beforeafter/ArgsAspect.java 2007-05-02 20:58:12 UTC (rev 62760)
+++ projects/aop/trunk/aop/src/test/org/jboss/test/aop/beforeafter/ArgsAspect.java 2007-05-02 20:59:34 UTC (rev 62761)
@@ -50,6 +50,7 @@
before = null;
after = null;
throwing = null;
+ exception = null;
POJO.joinPointRun = false;
}
@@ -152,24 +153,21 @@
Assert.assertTrue(POJO.joinPointRun);
}
- public Throwable throwing(@Thrown Throwable t, @Arg int i)
+ public void throwing(@Thrown Throwable t, @Arg int i)
{
throwing = "throwing1";
exception = t;
- return t;
}
- public Throwable throwing(@JoinPoint MethodInfo mjp, @Thrown Throwable t)
+ public void throwing(@JoinPoint MethodInfo mjp, @Thrown Throwable t)
{
throwing = "throwing2";
exception = t;
- return t;
}
- public Throwable throwing(@JoinPoint MethodInfo mjp, @Thrown Throwable t, @Arg int i)
+ public void throwing(@JoinPoint MethodInfo mjp, @Thrown Throwable t, @Arg int i)
{
throwing = "throwing3";
exception = t;
- return t;
}
-}
+}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list