[jboss-user] [JBoss Seam] - org.jboss.seam.Entity - constructor WTF?

jazir1979 do-not-reply at jboss.com
Thu Jun 28 18:27:11 EDT 2007


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??

thanks,
Daniel.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058947#4058947

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058947



More information about the jboss-user mailing list