Watch, Follow, &
Connect with Us
Public Report
Report From: C#Builder/ECO    [ Add a report in this area ]  
Report #:  28789   Status: Closed
Implicit collect isn't done for enumeration types
Project:  C#Builder Build #:  10.0.2288.42451
Version:    10.0 Submitted By:   Oleg Zhukov
Report Type:  Minor failure / Design problem Date Reported:  5/4/2006 10:15:19 PM
Severity:    Commonly encountered problem Last Updated: 5/5/2006 1:18:43 AM
Platform:    All platforms Internal Tracking #:  
Resolution: Fixed (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Implicit collect isn't done for enumeration types (and may be some other types)
Steps to Reproduce:
1) Create two classes:
Class_1 with d:DayOfWeek attribute and
Class_2:  Class_2 ----(cl1s, 0..*)-> Class_1
2) Evaluate "cl1s.d" in context of Class_2. An InvalidOperationException will be thrown.
Workarounds
Use explicit collect OCL operation.
I.e. "cl1s->collect(d)" expression instead of "cl1s.d".
Attachment
None
Comments

None

Server Response from: ETNACODE01