Bug 137546 - '=' operation on attribute of EEnum type and enum literal works incorrectly
Summary: '=' operation on attribute of EEnum type and enum literal works incorrectly
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: RC   Edit
Assignee: Christian Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords: greatbug
Depends on:
Blocks:
 
Reported: 2006-04-19 13:52 EDT by Radomil Dvorak CLA
Modified: 2011-05-27 02:41 EDT (History)
0 users

See Also:


Attachments
unit-test (1.46 KB, application/octet-stream)
2006-04-19 13:54 EDT, Radomil Dvorak CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radomil Dvorak CLA 2006-04-19 13:52:30 EDT
The value of enumeration type attribute used with '=' operation is evaluated as not equal to its corresponding enumeration literal
Comment 1 Radomil Dvorak CLA 2006-04-19 13:54:27 EDT
Created attachment 38957 [details]
unit-test
Comment 2 Christian Damus CLA 2006-04-20 09:13:33 EDT
Thanks again for making another bug so easy to fix by providing a JUnit test.

I also took the opportunity to fix the un-registered faked OCL package that you pointed out.  The reason why it had to be faked is that EMF does not generate an EPackage implementation for packages that contain no EClassifiers (the ocl package only has subpackages).  Attempting to rectify this by initializing the packages from the ecore file resulted in too many ecore files copied into the JAR, as well as EPackages containing themselves at run-time, causing StackOverflowErrors.  What I didn't anticipate was that anyone would write OCL expressions on the OCL AST but, Hey, why not?  That's perfectly meta-circular as EMF is also :-)
Comment 3 Christian Damus CLA 2006-04-20 12:15:03 EDT
Oops, forgot to resolve the bug when I added comment #2.
Comment 4 Nick Boldt CLA 2008-01-28 16:35:34 EST
Move to verified as per bug 206558.
Comment 5 Ed Willink CLA 2011-05-27 02:39:52 EDT
Closing after over a year in verified state.
Comment 6 Ed Willink CLA 2011-05-27 02:41:40 EDT
Closing after over a year in verified state.