list of dots

User Manual    [Previous]   [Next]   

E048 Attribute Generates Duplicate Method

Umple semantic error issued when an attribute generates a duplicate method

An attribute may autogenerate multiple methods, which can lead to duplicates if the methods have already been generated. Changing the name of the attribute causing the duplicate can fix the error.

Example

//The error will be issued, attr
//and Attr both generating setAttr
//and getAttr causing a name conflict
class A {
  attr;
  Attr;
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//The following example is a
//way to fix the error
class A {
  attr;
  attr2;
}
      

Load the above code into UmpleOnline