1 Reply Latest reply on Jun 28, 2007 7:54 PM by Gavin King

    org.jboss.seam.Entity - constructor WTF?

    Daniel Young Novice

      Hi guys,

      I'm trying to temporarily hack my way around JBSEAM-1487 so I can finish my half-completed upgrade to 2.0 BETA. I've come across the following code in org.jboss.seam.Entity and it looks a bit weird:

       for ( Class<?> clazz=beanClass; clazz!=Object.class; clazz = clazz.getSuperclass() )
       for ( Method method: getBeanClass().getDeclaredMethods() )

      The loop iterates up the object hierarchy, but instead of using the "clazz" variable, the contents of the loop always call getBeanClass().

      In my particular situation, this means the @Id getId() method in a superclass is not being picked up at all... WTF??