Issue 484 in protobuf: overrides final method getUnknownFields

2,415 views
Skip to first unread message

prot...@googlecode.com

unread,
Mar 18, 2013, 3:49:49 AM3/18/13
to prot...@googlegroups.com
Status: New
Owner: liu...@google.com
Labels: Type-Defect Priority-Medium

New issue 484 by hepin1989: overrides final method getUnknownFields
http://code.google.com/p/protobuf/issues/detail?id=484

when i call this
RelayMsg.getDefaultInstance()

,comes from
message RelayMsg{
optional Request req = 1;
optional Response rsp = 2;
}
the exception comes with :
Exception in thread "main" java.lang.VerifyError: class
us.sosia.net.client.relay.message.Relay$RelayMsg overrides final method
getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at
us.sosia.net.client.relay.pipeline.RelayBindChannelPipelineFactory.getPipeline(RelayBindChannelPipelineFactory.java:32)

,when i get down to it
i see this
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

prot...@googlecode.com

unread,
Mar 18, 2013, 12:56:51 PM3/18/13
to prot...@googlegroups.com
Updates:
Owner: xiaof...@google.com

Comment #1 on issue 484 by xiaof...@google.com: overrides final method
getUnknownFields
http://code.google.com/p/protobuf/issues/detail?id=484

Please clarify: In which class is the final method defined, and which class
overrides it? Please attach the source code of both classes.

prot...@googlecode.com

unread,
Apr 30, 2013, 1:36:29 PM4/30/13
to prot...@googlegroups.com

Comment #2 on issue 484 by abreslav: overrides final method getUnknownFields
http://code.google.com/p/protobuf/issues/detail?id=484

The final method is overridden in a protobuf-generated message class, in
the case above — RelayMsg. the only superclass for it is GeneratedMessage,
and it comes from protobuf. This happens when something generated by
protobuf 2.5.0 is run against a protobuf 2.4.1 runtime.

prot...@googlecode.com

unread,
Apr 30, 2013, 1:47:28 PM4/30/13
to prot...@googlegroups.com
Updates:
Status: WorkingAsIntended

Comment #3 on issue 484 by xiaof...@google.com: overrides final method
getUnknownFields
http://code.google.com/p/protobuf/issues/detail?id=484

Protobuf doesn't provide source/binary compatibility across different
versions. Users are supposed to compile/run generated code against the
run-time library with the same version.

prot...@googlecode.com

unread,
May 1, 2013, 9:53:12 PM5/1/13
to prot...@googlegroups.com

Comment #4 on issue 484 by hepin1989: overrides final method
getUnknownFields
http://code.google.com/p/protobuf/issues/detail?id=484

thanks for your all,I think we could close this issue now.thanks for your
reply.
Reply all
Reply to author
Forward
0 new messages