Search:

Type: Posts; User: sbertl000; Keyword(s):

Search: Search took 0.01 seconds.

  1. i changed the @Before Aspect to an @Around - and...

    i changed the @Before Aspect to an @Around - and it works ;-)
  2. HIGHEST_PRECEDENCE is Integer min value (...

    HIGHEST_PRECEDENCE is Integer min value ( -2147483648 )

    code



    @Aspect
    @Order(Ordered.HIGHEST_PRECEDENCE + 5)
    public class MyBeforeAdvice
    {
  3. I changed it AfterThrowing Advice has Order:...

    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...
  4. hmm, that does not change anything. The point...

    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.
  5. Throwing exception in @Before, catching in @AfterThrowing

    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...
Results 1 to 5 of 5