Hi,
I started to get this error with protoc-3.0.0/3.0.2. How can this be
resolved ?
Regards,
Nibin
On Friday, 2 September 2016 12:07:15 UTC-7, Paweł Szczur wrote:
>
> Funny, just installed protobuf-java:3.0.0 and getting this error with
> proto2.
>
> I've generated the code using protoc version 3.0.0.
>
> On Monday, November 16, 2015 at 7:32:17 PM UTC+1, Balaji R wrote:
>>
>> With protobuf-java:3.0.0-beta-1 and protoc:3.0.0-beta-1, I have started
>> getting IllegalAccessError in the generated code for access to memoizedSize
>> in getSerializedSize():
>>
>>
>> java.lang.IllegalAccessError: tried to access field
>>> com.google.protobuf.AbstractMessage.memoizedSize from class
>>> com.playground.proto.PlayProtos$DummyMessage
>>> at
>>> com.playground.proto.PlayProtos$DummyMessage.getSerializedSize(PlayProtos.java:722)
>>> at
>>> com.google.protobuf.AbstractMessageLite.toByteArray(AbstractMessageLite.java:64)
>>
>>
>> I am using syntax = "proto2".
>>
>> syntax = "proto2";
>>>
>>
>>
>> package playground;
>>> option java_package = "com.playground.proto";
>>> option java_outer_classname = "PlayProtos";
>>>
>>
>>
>> message DummyMessage {
>>
>> ...
>>
>> }
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.