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

User Manual    [Previous]   [Next]   

E3507 Duplicate Emit Method Name

Umple semantic error raised when a class has duplicate emit method names

Each emit method name must be unique in a class.
Attributing a different name to the duplicate method will solve the error.

Example

//Class A contains two emit
//methods of the same name
class A {
  temp <<! output !>>
  otherTemp <<! output !>>
  
  emit aMethod()(temp);
  emit aMethod()(otherTemp);
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//Changing the name of the
//second emit method resolves
//the issue
class A {
  temp <<! output !>>
  otherTemp <<! output !>>
  
  emit aMethod()(temp);
  emit aMethod2()(otherTemp);
}
      

Load the above code into UmpleOnline