Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Negative values for Enum entries create an warning in the editor.
Negative values for Enum entries create an warning in the editor. [message #1860612] Mon, 21 August 2023 20:28
Firstname Lastname is currently offline Firstname LastnameFriend
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

Previous Topic:[Edapt] No metamodel found error, need additional information besides tutorial
Next Topic:[Edapt] Adding a new EPackage cause NPE during Migration
Goto Forum:
  


Current Time: Thu May 02 21:05:27 GMT 2024

Powered by FUDForum. Page generated in 0.02536 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top