那麼,什麼是與覆蓋我不的問題得到它:的Java約@覆蓋
@Override
public ProtocolEncoder getEncoder(IoSession session) throws Exception {
return encoder;
}
@Override
public ProtocolDecoder getDecoder(IoSession session) throws Exception {
return decoder;
}
錯誤:
error: method does not override or implement a method from a supertype
@Override
error: MaplePacketDecoder is not abstract and does not override abstract method doDecode(IoSession,ByteBuffer,ProtocolDecoderOutput) in CumulativeProtocolDecoder
public class MaplePacketDecoder extends CumulativeProtocolDecoder {
error: method write in interface ProtocolEncoderOutput cannot be applied to given types;
out.write(IoBuffer.wrap(ret));
required: ByteBuffer
found: IoBuffer
reason: actual argument IoBuffer cannot be converted to ByteBuffer by method invocation conversion
你的超級類型是什麼? –
你認爲覆蓋是什麼意思?因爲如果你知道這意味着什麼,那麼這個信息是非常清楚的。 –
那麼你如何建議我寫它>? – UnityNewb