Association linking attempts to instantiate abstract class #1160
Labels
associations
Related to umple associations
bug
Crashes or wrong results
Component-SemanticsAndGen
Related to code generators in general and the meaning of Umple models
Diffic-Easy
Should be obvious how to fix it and doable in less than a week by an experienced Umple developer
Priority-VHigh
This is a critical problem that needs immedate solution as it is blocking users
Milestone
The following Umple code generates invalid code that attempts to instantiate an abstract class. This problem only occurs due to the 1 end of the association. If the multiplicity is changed to 0..1, then the problem is not present.
This problem was flagged by @gmussbacher gunter.mussbacher@mcgill.ca and is a high priority for his work. He might comment further.
Potential Solution 1: Detect associations which have multiplicity 1 at one end, and an abstract class at the other and and either:
a) Disallow such associations with an error
b) Raise a warning, and treat as a 1..* (similar to the way we handle directed associations
c) Simply avoid generating such a method in this exact case only
Option c is suggested.
The text was updated successfully, but these errors were encountered: