views:

432

answers:

3

Hi, I have overriden a controller class in a java projects in order to add an interceptor, I would like to know if there is anyway I can remove the "error" showing up in Eclipse:

The type CRUD is already defined

I don't think the code will help much but there you go:

package controllers;

    public abstract class CRUD extends Controller {
A: 

From Window -> Preferences -> Java -> Compiler -> Errors/Warnings, find your case and choose "Ignore" from the drop down menu

medopal
A: 

From top of my head:

Preferences -> Java -> Compiler -> Errors/Warnings -> Name shadowing and conflicts -> alter the settings there per your likes.

The same can be done for a particular project only, by enabling project specific compiler settings in project properties (Java Compiler section).

david a.
A: 

The error was removed after a rebuild of the eclipse project.

mnml