thrift 版本不一致导致 @Override 报错

thrift 版本不一致导致 @Override 报错

学习了:http://blog.csdn.net/antony1776/article/details/78920888

版本不一致导致的;

 在http://thrift.apache.org/download页面,点击

Incubator Releases¶
Releases from the incubator ( less than 0.6.0 ) are available at the Thrift Incubator Archive

Releases from 0.6.0 up to the current release are available at the Apache Thrift Archive
中的Apache Thrift Archive,打开http://archive.apache.org/dist/thrift/页面,
可以下载其他版本的thrift;

但是,修改成0.10.0或者0.9.3都会继续出现@Override报警问题!
还有这样的方法:将window->preferences->java-compiler中的Compiler compliance level修改为6.0。
但是我这边已经是jdk1.8了;

后来看了一下,报错的类的确没有父类,只是实现了org.apache.thrift.TBase<T, F>接口,
所以不能有@Override注解,只有把注解删除了;



原文地址:https://www.cnblogs.com/stono/p/8256373.html