6/03/2011

Exception: The method XYZ of type ABC must override a superclass method

The method processAction(PortletConfig, ActionRequest, ActionResponse) of type ConfigurationActionImpl must override a superclass method ...


if you get an Exception like this when trying to use @Override on a method that is implementing an interface method, eclipse doesn´t care and you can´t get your ext to build and deploy ... then you have to change the build.properties (you will find it in the root folder of your plugins - sdk):

ant.build.javac.source=1.5
ant.build.javac.target=1.5
should be
ant.build.javac.source=1.6
ant.build.javac.target=1.6

Java 1.5 allows @Override only for abstract classes, not for interfaces.


If you like this tutorial it would be very nice, if you could click on some of the google ads you see on the right side. It helps me run this block and motivates me ;)

If you have any questions, feel free to leave a comment.