E203 Not having an unique identifier
[Previous]  [Next] 
|
User Manual [Previous]  [Next] E203 Not having an unique identifierUmple semantic error related to not using traits which do not have unique identifiersIn Umple, all elements which are capable of being reused should have unique identifiers. Traits, as reusable elements in Umple also have to follow the same rule. Identifiers of traits should be unique in the system. The conflict happens among classes, interfaces, and traits. Therefore, these three elements always should have unique identifiers. Example// In this example, Identifier of // trait "I" is not unique. class A{ isA I; } class I { //elements } trait I{ //elements } Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears//In this example, Identifier of // trait "T" is unique. class A{ isA T; } class I { //elements } trait T{ //elements } Load the above code into UmpleOnline |