[
https://issues.jboss.org/browse/IPROTO-13?page=com.atlassian.jira.plugin....
]
Adrian Nistor edited comment on IPROTO-13 at 7/11/16 7:23 AM:
--------------------------------------------------------------
Also, enum values use C++ scoping rules, so the names must be unique across the entire
package in which are defined not just within the enum that defines them.
was (Author: anistor):
Also, enum values use C++ scoping rules, so the names must be unique across the entire
file in which are defined not just within the enum that defines them.
Proto parser does not detect duplicate enum constant names
----------------------------------------------------------
Key: IPROTO-13
URL:
https://issues.jboss.org/browse/IPROTO-13
Project: Infinispan ProtoStream
Issue Type: Bug
Affects Versions: 3.0.5.Final
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Fix For: 3.0.6.Final
This should generate an error:
{code}
enum E {
A = 1;
A = 2;
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)