[infinispan-issues] [JBoss JIRA] (IPROTO-14) Allow aliases for enum constants if option 'allow_alias' is true
Adrian Nistor (JIRA)
issues at jboss.org
Fri Feb 3 09:35:00 EST 2017
[ https://issues.jboss.org/browse/IPROTO-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Nistor updated IPROTO-14:
--------------------------------
Fix Version/s: 4.0.0.Alpha6
(was: 4.0.0.Alpha1)
> Allow aliases for enum constants if option 'allow_alias' is true
> ----------------------------------------------------------------
>
> Key: IPROTO-14
> URL: https://issues.jboss.org/browse/IPROTO-14
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 3.0.6.Final
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 4.0.0.Final, 4.0.0.Alpha6
>
>
> Duplicate constant numbers are not usually allowed, but the the following should be allowed (based on the presence of 'allow_alias' option.
> {code}
> enum EnumAllowingAlias {
> option allow_alias = true;
> UNKNOWN = 0;
> STARTED = 1;
> RUNNING = 1;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list