list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

E3503 Template Reference Refers To Itself

Umple semantic error raised when a template reference refers to itself

A template reference cannot refer to itself. The logic of the template might be flawed.

Example

//Template otherTemp refers to
//itself causing the error
class A {
  temp <<! output !>>
  otherTemp <<! <<@otherTemp>> !>>
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//No template refers to itself,
//the error does not occur
class A {
  temp <<! output !>>
  otherTemp <<! <<@temp>> !>>
}
      

Load the above code into UmpleOnline