-
Notifications
You must be signed in to change notification settings - Fork 970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong version of protobuff_runtime.jar in J2ObjC 2.3 (cannot compile) #1019
Comments
Hi, The last few releases of J2ObjC were built with protobuf 3.5.1. I'll look into updating to the latest protobuf version for the next release. Thanks, |
Right, but the problem is, that protobuff compiler is 3.5.1, but protobuff runtime is 3.3.0: $ j2objc_protoc --version Info from protobuff_runtime.jar: Bundle-SymbolicName: com.google.protobuf So that the generated java doesn't compile according provided runtime. Both j2objc_protoc and protobuff_runtime.jar taken from official zip file downloaded from j2objc - version 2.3 (j2objc-2.3.zip). |
Change on 2018/12/28 by antoniocortes <[email protected]> ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=227129646
Fixed in 2.3.1. |
Hi,
it looks like that there is older version (3.3) of protobuff runtime, than protobuff compiler itself (3.5.1). When used I got compilation errors like:
symbol: method setUnknownFieldsProto3(UnknownFieldSet)
/Users/sarsonj/Documents/work/ios/ttmonitor-common/protobuf/genjava/pb/Pb.java:28721: error: cannot find symbol
if (!parseUnknownFieldProto3(
^
After using JAR from protobuff 3.5.1, it works.
Thanks,
Jindrich
The text was updated successfully, but these errors were encountered: