Just got interesting issue with compiling class file with `@Override` annotation on method which implements interface method.
I tried to set up [moquette project] in eclipse and got compile error
Description Resource Path Location Type
The method decodable(IoSession, IoBuffer) of type PubAckDecoder must override a superclass method PubAckDecoder.java /moquette-parser/src/main/java/org/dna/mqtt/moquette/proto line 22 Java Problem
That seems correct as java 1.5 compliance level is used. However this project is successfully built with maven! That is strange for me.
There is following argument file which is used for javac compiler:
I removed all other source files and left just `PubAckDecoder` which contains the error.
What am I missing? Why it is built with maven when it should not?
Maven configuration for compiler plugin:
: http://code.google.com/p/moquette-mqtt/source/checkout Well what source version is Maven using to build it?
以上就是interesting issue about @Override with interface的详细内容，更多请关注web前端其它相关文章！