2 Replies Latest reply on Aug 2, 2010 12:42 AM by EJP

    Generics, syntax error


      I have a class :
      *public abstract class Action<M extends Message> { ... }*
      and a subclass :
      *public class ActionValidateConnection extends Action<MessageValidateConnection> { ... }*
      MessageValidateConnection is a class extending Message.

      Until there everything works fine. But it appears that I should add a superclass in between :
      *public abstract class Action<M extends Message> { ... }*
      *public abstract class ActionController<M extends Message> extends Action<M extends Message> { ... }*_
      *public class ActionValidateConnection extends ActionController<MessageValidateConnection> { ... }*

      And I have a syntax error on the declaration of ActionController.

      Can anyone help me with this ? I don't know how to add a class in between ... thanks!