W1002-3 Unexpected Embedded Code
[Previous]  [Next] 
|
User Manual [Previous]  [Next] W1002-3 Unexpected Embedded CodeUmple warning reported when embedded code is found in a native language like Java, PHP or C++, yet 'strictness' has been set indicating this should not occur.If strictness is set to 'modelOnly', this means that the developer intends to only include classes, associations, state machines and other modeling elements, but not embedded code in another programming language, not even method bodies. If strictness is set to 'noExtraCode', it is the same as the above, except that method bodies are allowed. This warning is issued when strictness has been set to one of the above, yet Umple has encountered sytax that interprets as either a method body or some other code in a class that it cannot parse, and is assuming it is native code to be passed to the native compiler. This warning can often happen when the programmer/modeler wrote Umple code with a syntax error, so Umple thinks it is not Umple, but some other language. Here are some things to try in order to resolve this warning:
Example// The following example shows how to // generate this warning. strictness modelOnly; class X { public static void main() { System.out.println("Hello World"); } } Load the above code into UmpleOnline |