|
W1012 Method Not Found Injection
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] W1012 Method Not Found InjectionUmple semantic warning issued when an injection is called on a method that cannot be foundInjecting code before or after a method must be done on an existing method. The injection
will otherwise be ignored. Example
//getAttr does not exist in the class
//which generates the warning
class A {
before getAttr {
doSomething();
}
doSomething(){/* Implementation */}
}
// @@@skippythoncompile
Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears
//By declaring the attribute attr
//the getAttr method can now be used
class A {
attr;
before getAttr {
doSomething();
}
doSomething() {/* Implementation */}
}
// @@@skippythoncompile - Contains Java Code
Load the above code into UmpleOnline |