Skip to main content



      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 16:28
Eclipse UserFriend
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 17:46] by 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: Tue Jul 01 16:22:31 EDT 2025

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

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

Back to the top