]
Nistor Adrian updated IPROTO-101:
---------------------------------
Sprint: DataGrid Sprint #30, DataGrid Sprint #31 (was: DataGrid Sprint #30)
Enum values with same name in different classes clash
-----------------------------------------------------
Key: IPROTO-101
URL:
https://issues.jboss.org/browse/IPROTO-101
Project: Infinispan ProtoStream
Issue Type: Bug
Affects Versions: 4.3.0.Alpha6
Reporter: Ryan Emerson
Assignee: Nistor Adrian
Priority: Major
{code:java}
@ProtoName("TakeSiteOfflineResponse")
public enum TakeSiteOfflineResponse {
@ProtoEnumValue(number = 1)
NO_SUCH_SITE,
@ProtoEnumValue(number = 2)
ALREADY_OFFLINE,
@ProtoEnumValue(number = 3)
TAKEN_OFFLINE
}
@ProtoName("BringSiteOnlineResponse")
public enum BringSiteOnlineResponse {
@ProtoEnumValue(number = 1)
NO_SUCH_SITE,
@ProtoEnumValue(number = 2)
ALREADY_ONLINE,
@ProtoEnumValue(number = 3)
BROUGHT_ONLINE
}
{code}
Results in:
{code:java}
Enum value org.infinispan.test.TakeSiteOfflineResponse.NO_SUCH_SITE clashes with enum
value org.infinispan.test.BringSiteOnlineResponse.NO_SUCH_SITE
{code}