|
E3507 Duplicate Emit Method Name
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] E3507 Duplicate Emit Method NameUmple semantic error raised when a class has duplicate emit method names
Each emit method name must be unique in a class. 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 |