出错原因很简单,在jdk1.6之前,override注解,表示重写父类的方法,但是不能重写父接口(implements)的此方法。
在jdk1.6之后,这个bug也就改改掉了。
Indicates that a method declaration is intended to override a method declaration in a superclass. If a method is annotated with this annotation type but does not override a superclass method, compilers are required to generate an error message.