Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 409 by [email protected]: protocol message fields with Java reserved words not always compiled correctly
http://code.google.com/p/protobuf/issues/detail?id=409

What steps will reproduce the problem?
1. create a protocol message definition with a "class" field
2. generate Java code for this message
3. observe errors in generated source

What is the expected output? What do you see instead?

Java code that compiles. Instead, methods such as "int getClass()" produce compiler errors.

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

libprotoc 2.4.1, on RHEL 5.8

Please provide any additional information below.

It would appear some thought has gone into this, for example, the C++ code has methods named "class_()", "has_class_()", etc. Otherwise, this should be considered a low-priority enhancement at best.


--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to