2 Replies Latest reply: Aug 1, 2010 5:42 PM by EJP RSS

    Generics, syntax error

    843793
      hi,

      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!