Negative values for Enum entries create an warning in the editor. [message #1860612] |
Mon, 21 August 2023 20:28 |
Firstname Lastname![Friend of Eclipse Friend](png/friends_decoratorae5e.png) Messages: 7 Registered: July 2023 |
Junior Member |
|
|
Hi there,
when adding a negative value for a enum entry in emfatic the editor in Eclipse gives a warning.
This can be recreated with the following emfatic model:
@namespace(uri="bug.negative.enum", prefix="")
package bug;
enum NegativeEnum {
minus1 = -1;
positive1 = 1;
}
Error Message:
Quote:
Encountered " <ID> "minus1 "" at line 5 column 9.
Was expecting:
"}" ...
As far as I know this should be allowed, at least I could not find anything in the emfatic documentation that does cotradict enums having negative values for their entries.
I have downloaded the current Epsilon Version with Oomph:
Quote:
Eclipse Platform
Version: 2021-12 (4.22)
Build id: I20211124-1800
Edit: added version information
[Updated on: Mon, 21 August 2023 21:46] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01876 seconds