Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 630 by Java: initializing bitFields variables

What steps will reproduce the problem?
1. Generate Java class

What is the expected output? What do you see instead?
In the message class in the init method there are all the variables initialized but not the bitFields. This issue does not propagate itself when normally used because the bitFields are populate by JVM automatically to zeros when new instance is created. However, I thought I would report it since it does not seem to me the way it was intended to be. I discovered it when I was implementing changes to the generated class to have it behave more in "SAX" style than "DOM". So I was reusing one message object multiple times and I needed to reset the variables before every usage.

Please use labels and text to provide additional information.
Java, initMethod, bitfields

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