1 Reply Latest reply on Jun 17, 2007 11:03 PM by norman.richards

    Can't use generics for abtract methods

    straubp

      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!