Results 1 to 3 of 3

Thread: @AspectJ and CGLIB proxies

  1. #1
    Join Date
    Aug 2006
    Posts
    236

    Default @AspectJ and CGLIB proxies

    Hi there

    I am currently in the process of converting an .aj to a java file and annotate the advice and pointcuts. In the ADJT tool in eclipse I can see that the advice is being applied.

    When trying to run a test suite i get the following exception:
    Code:
    Caused by: java.lang.VerifyError: (class: com/xxx/xxx/xxx, method: xxx_xxx1$advice signature: (Lcom/xxx/xxx/xxx;Lcom/xxx/xxx/xxx;Lorg/aspectj/lang/JoinPoint;Lcom/xxx/xxx/<Advice>;Lcom/Xxx/xxÀá
    I may be wrong but it looks like the cglib proxy is being weaved by aspectj and causing some problems.

    Any advice?

  2. #2
    Join Date
    Aug 2006
    Posts
    236

    Default

    P.S there is no problem when using the traditional style aspect.

  3. #3
    Join Date
    Aug 2006
    Posts
    236

    Default

    It seems as though using noinline option in stops this problem. Not sure why this would happen on an annotated class and not to a .aj class. The noinline is used for debugging around advice.

    Hmmmmmm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •