uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

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 they key has 'a' twice
class X26dupiteminkey {
  a;
  b;
  key {a, b, a} 
}

      

Load the above code into UmpleOnline