I am using JRE 1.6 version and aware of JRE 1.5 trouble while using @Override
with interface.
I imported a new project (Spring + Maven ) and Eclipse giving error on every @Override
annotation whenever any interface method is overridden.
Things I tried till now
Edit 1:
I am getting following error
The method XXX of type XXX must override a superclass method.
Edit 2:
Code Sample
Interface declaration
public interface HelperService {
public RequisitionTypeDTO getRequisitionTypeDTO(int id) throws Exception;
}
Implementation:
@Service
public class HelperServiceImpl implements HelperService{
@Override // Getting error for this line
public RequisitionTypeDTO getRequisitionTypeDTO(int id) throws Exception{
// Bla Bla Bla
}
}
EDIT 3:
I am able to build and run my application successfully irrespective of this errors. Just not happy with red error flags all over the source code.
Realized no Builder is selected for current project. Selected Java Builder
and boom. No more red flags all over the code.