list of dots University of Ottawa logo / Université d'Ottawa

User Manual    [Previous]   [Next]   

E022 Duplicate Attribute

Umple semantic error reported when a class is given two attributes with the same name.

Attributes in a class must have distinct names. The solution to this error is to rename or delete one of the attributes. This error is particularly prone to appear when a class is composed of two or more files using Umple's 'mixin' capability; the attribute should be defined in one file or the other, but not both.


// The following example shows how
// to generate this error.
class X {

Load the above code into UmpleOnline