Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » OCL Error 2
OCL Error 2 [message #585760] Mon, 21 August 2006 17:15
Chris Lenz is currently offline Chris LenzFriend
Messages: 214
Registered: July 2009
Senior Member
In ValidationVisitorImpl I have found the following thing:
under
if (opcode == PredefinedType.CLOSURE) {

we can find:
if (TypeUtil.typeCompare(sourceElementType, iteratorElementType) < 0) {
}

My constellation is the following I have a
LogicalTool which is abstract and a ITBaseSystem which is a subcalss of
LogicalTool (ITBaseSystem->LogicalTool)

My expression is self->closure(uses) and context is a ITBaseSystem, the
uses set is defined in LogicalTool and I get the error message
Closure type (LogicalTool) does conform to source type (ITBaseSystem)
(If error 1 see newsgroup is fixed)

so the
if (TypeUtil.typeCompare(sourceElementType, iteratorElementType) < 0) {
}
does not chech the inheritance!

if I comment the "if" my evaluation is right
Chris
Previous Topic:OCL Errors1
Next Topic:OCL Errors1
Goto Forum:
  


Current Time: Tue Apr 16 05:24:20 GMT 2024

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

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

Back to the top