eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[cg] Use of Number as an Ecore type fails #1691

Open eclipse-ocl-bot opened 3 hours ago

eclipse-ocl-bot commented 3 hours ago

| --- | --- | | Bugzilla Link | 492064 | | Status | NEW | | Importance | P3 normal | | Reported | Apr 20, 2016 04:17 EDT | | Modified | Apr 20, 2016 06:03 EDT | | Reporter | Ed Willink |

Description

The CollectionType.lower/upper properties use java.lang.Number provoking a variety of errors in the generated Java code for CS2AS where the assumed range of possible types corresponding to IntegerValue/UnlimitedNaturalValue is too small.

eclipse-ocl-bot commented 3 hours ago

By Ed Willink on Apr 20, 2016 06:03

UsageTests.testEcoreTypes412736 already has sub-tests for 'ENumber' but they are commented out as waiting for Bug 370087.