list of dots

User Manual    [Previous]   [Next]   

W3506 Duplicate Template Name

Umple semantic warning reported when a class has a duplicate template name

A class should have unique template names for each distinct template. If duplicate templates are found, the last definition of the template is kept.
The warning might be caused by a template of the same name being defined in a separate file.

Example

//Class A contains two templates
//of the same name, causing
//the warning
class A {
  temp <<! output !>>
  temp <<! otherOutput !>>
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//The warning is resolved by
//giving the second template
//a distinct name
class A {
  temp <<! output !>>
  secondTemp <<! otherOutput !>>
}
      

Load the above code into UmpleOnline