protocol buffer使用中的问题This is supposed to be overridden by subclasses

来源:互联网 发布:饥荒手机版mt修改数据 编辑:程序博客网 时间:2024/06/11 02:48

Exceptionin thread"main" java.lang.UnsupportedOperationException: This is supposed to be overridden by subclasses.

atcom.google.protobuf.GeneratedMessage.getUnknownFields(GeneratedMessage.java:180)

atcom.test.utill.TextFormat$Printer.print(TextFormat.java:251)

atcom.test.utill.MessageLiteToStringUtil.toString(MessageLiteToStringUtil.java:20)

atcom.test.protocol.ProtocolTest.main(ProtocolTest.java:23)

出现这个问题是由于protoc.exe的版本和jar包版本不匹配


1 0
原创粉丝点击