The method of type must override a superclass method解决方式
导入新的项目,报错:
The method run() of type SortRunThread.Run must override a superclass method
因为:
实现类里面使用了 @Override
在1.5下要使用@Override 这个annotation 必须保证 被标注方法来源于class 而不是interface
解决方法:
将项目的jdk从1.5改为1.8
正文到此结束
- 所属分类: 后端技术
- 本文标签:
- 版权声明: 原创文章如转载,请注明本文链接: http://www.seaxiang.com/blog/override_annotation_error_solve