abstract method foo(E) in wtf.is.going.on cannot be accessed directly super.foo(e)
使用ANDROID
自动生成的ANT
构建文件ANT
编译项目时出现该错误。
当我在ECLIPSE
中编译相同的项目时,我没有遇到任何问题。发生了什么事情?
这是正在发生的事情:
package wtf.is.going.on;
public interface DAOMutator<E> {
public void foo(E e);
}
package wtf.is.going.on;
public class DAOBImpl<E extends DAO> implements DAOMutator<E> {
@Override
public void foo(DAO dao) {
//do some stuff
}
}
package wtf.is.going.on.more;
public class VMBImpl <E extends someDao> extends DAOBImpl<E> {
@Override
public void foo(E e) {
super.foo(e); // ERROR OCCURS HERE
}
}
确切的错误输出:
[javac] MYPATHsrcwtfisgoingonmoreVMBImpl.java:6: abstract method foo(E) in wtf.is.going.on.DAOMutator cannot be accessed directly
[javac] super.foo(e);
如果切换
public void foo(DAO dao)
在道英普尔到
public void foo(E dao)
它工作正常吗?