[
https://issues.redhat.com/browse/IPROTO-101?page=com.atlassian.jira.plugi...
]
Pedro Zapata Fernandez updated IPROTO-101:
------------------------------------------
Sprint: DataGrid Sprint #30, DataGrid Sprint #31, DataGrid Sprint #32, DataGrid Sprint
#33, DataGrid Sprint #34, DataGrid Sprint #35, DataGrid Sprint #36, DataGrid Sprint #37,
DataGrid Sprint #38, DataGrid Sprint #39 (was: DataGrid Sprint #30, DataGrid Sprint #31,
DataGrid Sprint #32, DataGrid Sprint #33, DataGrid Sprint #34, DataGrid Sprint #35,
DataGrid Sprint #36, DataGrid Sprint #37, DataGrid Sprint #38)
Enum values with same name in different classes clash
-----------------------------------------------------
Key: IPROTO-101
URL:
https://issues.redhat.com/browse/IPROTO-101
Project: Infinispan ProtoStream
Issue Type: Bug
Affects Versions: 4.3.0.Alpha6
Reporter: Ryan Emerson
Assignee: Nistor Adrian
Priority: Major
Fix For: 4.3.0.Alpha10
{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}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)