Status: New
Labels: Type-Defect Priority-Medium

New issue 582 by package name evaluated as enum instance

What steps will reproduce the problem?
1.create one proto containing one enum instance with the same name as package name
2.generate java file from that proto file
3.get compile error

What is the expected output? What do you see instead?
-- compile error, package name is mistakenly evaluated as enum instance

What version of the product are you using? On what operating system?
-- protoc 2.5.0

Please provide any additional information below.
-- sample proto to reproduce this issue

package TEST.Conflict;

message Confliction {
   enum {
     TEST = 0;
     NORMAL = 1;

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