eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

OrderedSet Coersion to EList for EOperation Parameter #177

Closed eclipse-ocl-bot closed 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 184789 | | Status | CLOSED FIXED | | Importance | P2 major | | Reported | Apr 30, 2007 17:23 EDT | | Modified | May 27, 2011 02:40 EDT | | Version | 1.0.1 | | Reporter | Mike Gering |

Description

When the result of a collection operation is an OrderedSet, and this is passed to an EOperation as a multi-valued parameter, java throws an IllegalArgumentException from Method.invoke(). The EMF generated type for the parameter is EList and the type of the OCL result is LinkedHashSet, which is causing the exception.

When a variable, e.g. isGrowable, is defined as an OrderedSet, the call works fine, e.g. ruleBinding.addPropLoci(isGrowable).

But this fails: ruleBinding.addPropLoci(isGrowable->select(value = 'false')).

eclipse-ocl-bot commented 1 month ago

By Christian Damus on Apr 30, 2007 17:46

Seems to me like a rather severe problem.

eclipse-ocl-bot commented 1 month ago

By Christian Damus on May 03, 2007 09:22

Updated the evaluation visitor to coerce collection values to EList where necessary. This covers all target metamodels.

eclipse-ocl-bot commented 1 month ago

By Nick Boldt on Jan 28, 2008 16:37

Move to verified as per bug 206558.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on May 27, 2011 02:37

Closing after over a year in verified state.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on May 27, 2011 02:40

Closing after over a year in verified state.