[jboss-user] [JBoss Seam] - Can't use generics for abtract methods

straubp do-not-reply at jboss.com
Sun Jun 17 09:31:00 EDT 2007


Hi all!


  | public abstract class AbstractClass<E> {
  | 
  |   public List<E> doSomething(E e) {
  | 
  |     return doInConcreteClass(e);
  |   }
  | 
  |   public abstract List<E> doInConcreteClass(E e);
  | }
  | 
  | @Name("concreteClass")
  | public class ConcreteClass extends AbstractClass<String> {
  | 
  |   public List<String> doInConcreteClass(String e) {
  |     System.out.println(e);
  |   }
  | }
  | 
  | 

Having somthing like this, I get: javassist.CannotCompileException: duplicate method: ...

I think I read somewhere, that this was a bug in javaassist which has been fixed by now. Looks like Seam 1.2.1 is using an older version. My question: Will javaassist be updated in 1.3.0? Or is there a way - like in hibernate - to use cglib instead?

Thanks!

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

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



More information about the jboss-user mailing list