list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

E026 Duplicate Key Item

Umple semantic error reported when a key has a duplicate item

If an item (attribute, association, state machine) appears twice in a key, it is an error, since Umple cannot tell the preferred order of items.

Example

// The following example has error 26
// since the key has 'a' twice
class X26dupiteminkey {
  a;
  b;
  key {a, b, a} 
}
      

Load the above code into UmpleOnline