Results 1 to 2 of 2

Thread: AOP on Classes implementing generic interfaces fails

  1. #1
    Join Date
    Sep 2004
    Posts
    3

    Default AOP on Classes implementing generic interfaces fails

    I have had a problem using AOP on classes that implement generic interfaces. Before I understood that this was the problem, I posted about this issue here:

    http://forum.springframework.org/showthread.php?t=10384

    I have a many classes of the form:

    ThingManager extends java.lang.Object implements Manager<Thing>

    When I attempt to have TransactionProxyFactoryBean generate CGLIB proxies for me, it throws a StackOverflowError due to an apparently infinite recursion in the CGLIB libraries (please see the referenced post for a copy of the message).

    Removing the generified interface declaration makes everything work properly.

    Is using CGLIB on generics verboten? Is this a bug in CGLIB? Is this a bug in the way Spring uses CGLIB? Is there a work around for this? Or am I simply mistaken?

    Thanks for any help you can offer.
    Last edited by robyn; May 14th, 2006 at 09:43 AM.

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Doh! Just spotted this post after replying to the previous one.

    I'm not sure as yet if CGLIB has support for generics. I will speak to the guys there and see what the situation is.

    Rob

Similar Threads

  1. Replies: 1
    Last Post: Aug 18th, 2006, 11:04 PM
  2. Generic Querying Design Questions
    By soniks in forum Data
    Replies: 4
    Last Post: Jun 7th, 2005, 04:37 AM
  3. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  4. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

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