You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run the protobuf compiler using $J2OBJC/j2objc_protoc --java_out=java --j2objc_out=objc sample.proto
The generated Java code includes references to enum values GET_MEMOIZED_IS_INITIALIZED and SET_MEMOIZED_IS_INITIALIZED for type com.google.protobuf.GeneratedMessageLite.MethodToInvoke that are missing in $J2OBJC/lib/protobuf_runtime.jar (verified missing using JD-GUI). This causes errors when using j2objc to translate Java source files with references to the generated protobuf Java code.
The text was updated successfully, but these errors were encountered:
The "optimize for LITE_RUNTIME" option no longer supports reflective methods in the Java protobuf runtime. That support is now available in a separate libprotobuf-lite.jar, but there isn't a j2objc equivalent to that runtime. I recommend you remove that option from your proto file.
With input protobuf definition
sample.proto
:I run the protobuf compiler using
$J2OBJC/j2objc_protoc --java_out=java --j2objc_out=objc sample.proto
The generated Java code includes references to enum values
GET_MEMOIZED_IS_INITIALIZED
andSET_MEMOIZED_IS_INITIALIZED
for typecom.google.protobuf.GeneratedMessageLite.MethodToInvoke
that are missing in$J2OBJC/lib/protobuf_runtime.jar
(verified missing using JD-GUI). This causes errors when usingj2objc
to translate Java source files with references to the generated protobuf Java code.The text was updated successfully, but these errors were encountered: