Comment #6 on issue 630 by Java: initializing bitFields variables

Re #5:
JVM will only set the value to 0 but an integral protobuf field may have a non-zero default value (set by field option [default = 12345]). When generating the init method it's easier to just generate an assignment statement for every field no matter whether the default value is 0 or not. This is an implementation detail though. We could change it to not initialize integral fields whose default value is 0.

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to