Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323686

Summary: [enums] Allow to suppress the warning for multiple representations of same enum literal
Product: [Modeling] TMF Reporter: Jan Koehnlein <jan>
Component: Xtext BacklogAssignee: Project Inbox <tmf.xtext-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: christian.dietrich.opensource, sebastian.zarnekow
Version: 1.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: v2.11
Attachments:
Description Flags
Screenshot
none
Screenshot none

Description Jan Koehnlein CLA 2010-08-26 04:46:35 EDT
The following should be legal

enum Visibility:
   public | private | public='+' | private='-';

but currently results in a warning.
Comment 1 Sebastian Zarnekow CLA 2010-08-26 04:49:58 EDT
The warning just tells you that the order of the literals is relevant.
Comment 2 Jan Koehnlein CLA 2010-08-26 05:56:57 EDT
"Enum literal 'public' has already been defined with literal 'public'." does not refer to the order of enum literals IMHO.
Comment 3 Sebastian Zarnekow CLA 2010-08-26 05:59:25 EDT
Agreed.
Comment 4 Christian Dietrich CLA 2017-03-11 10:09:48 EST
Created attachment 267220 [details]
Screenshot

can no longer be reproduced. you can specify the issue severity for that warning
Comment 5 Christian Dietrich CLA 2017-03-11 10:11:11 EST
Created attachment 267221 [details]
Screenshot