Eclipse发现@Override的错误

Eclipse发现@Override的错误,eclipse,spring-tool-suite,Eclipse,Spring Tool Suite,Eclipse(from)发现@Override的错误 public class Class1 implements Comparable<Class1> { ... @Override public int compareTo(Class1 o) { public类Class1实现了可比较的{ ... @凌驾 公共国际比较(1 o类){ copmareTo()具有标记: Multiple markers at this line - The method compare

Eclipse(from)发现@Override的错误

public class Class1 implements Comparable<Class1> {
...
@Override
public int compareTo(Class1 o) {
public类Class1实现了可比较的{
...
@凌驾
公共国际比较(1 o类){
copmareTo()具有标记:

Multiple markers at this line
    - The method compareTo(Class1 ) of type Class1 must override a superclass method
    - implements java.lang.Comparable<com.funshion.base.mc.entity.McImp>.compareTo
此行有多个标记
-Class1类型的方法compareTo(Class1)必须重写超类方法
-实现java.lang.Comparable.compareTo
第一条信息是错误的

.项目内容

<projectDescription>
    <name>ProjectName</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.wst.common.project.facet.core.builder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.validation.validationbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.springframework.ide.eclipse.core.springbuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.m2e.core.maven2Builder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.springframework.ide.eclipse.core.springnature</nature>
        <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
        <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
        <nature>org.eclipse.m2e.core.maven2Nature</nature>
        <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
    </natures>
</projectDescription>

项目名称
org.eclipse.wst.common.project.facet.core.builder
org.eclipse.jdt.core.javabuilder
org.eclipse.wst.validation.validationbuilder
org.springframework.ide.eclipse.core.springbuilder
org.eclipse.m2e.core.maven2Builder
org.springframework.ide.eclipse.core.springnature
org.eclipse.jem.workbench.JavaEMFNature
org.eclipse.wst.common.modulecore.ModuleCoreNature
org.eclipse.jdt.core.javanature
org.eclipse.m2e.core.maven2Nature
org.eclipse.wst.common.project.facet.core.nature

Project Java版本必须为1.6,
由于@Override注释随Java 6一起到达。

Project Java版本必须为1.6, 随着@Override注释随Java6一起出现