i changed the @Before Aspect to an @Around - and it works ;-)
Type: Posts; User: sbertl000; Keyword(s):
i changed the @Before Aspect to an @Around - and it works ;-)
HIGHEST_PRECEDENCE is Integer min value ( -2147483648 )
code
@Aspect
@Order(Ordered.HIGHEST_PRECEDENCE + 5)
public class MyBeforeAdvice
{
I changed it
AfterThrowing Advice has Order: Ordered.HIGHEST_PRECEDENCE + 4
BeforeAdvice has Order: Ordered.HIGHEST_PRECEDENCE + 5
So the AfterThrowing should be executed first. But it does...
hmm, that does not change anything.
The point is, that if the Before Advice does not throw an exception, the After Advices are executed at the right time.
Hi,
i created a @Before Advice that throws an exception and tried to catch it in another @AfterThrowing, but it does not work.
if the exception is not thrown in the advice, but directly in the...