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

User Manual    [Previous]   [Next]   

W1014 Excluded Method Not Found Injection

Umple semantic warning issued when an excluded method is not found in a code injection

When excluding methods in a code injection with pattern matching, a warning will be raised if a method is not found. The exclusion will be ignored.
Verifying which method was meant to be excluded will generally resolve the issue.

Example

//The warning is generated as the code 
//injection excludes getAttr3, which
//is not a method in class A
//The exclusion is ignored
class A {
  attr;
  attr2;
  
  before getAttr*, !getAttr3 {
  }
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//Fixing the name of the
//method removes the warning
class A {
  attr;
  attr2;
  
  before getAttr*, !getAttr2 {
  }
}
      

Load the above code into UmpleOnline