Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Generics, syntax error

843793Aug 1 2010 — edited Aug 1 2010
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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2010
Added on Aug 1 2010
2 comments
680 views