SLIDE 8 Software Engineering, RWTH Aachen www.monticore.de/dex
ErrorCodes [Sch12] Please ensure that… Wrong example Correct example 0xU0533, 0xU0534 CD-1-07, CD-1-10, CD-1-14 Only interfaces are implemented.
class A; class B implements A; class A; class B extends A;
0xU0442 CD-1-49 Every class referenced by a qualifier contains an attribute with the qualifier’s name resp. type.
class A; class B; association a1 A[att1] -> B; class A; class B { int att1; } association a1 A[att1] -> B;
0xD0055 / Interfaces in your CD do NOT contain any attributes (because they are not supported by the dex-generator yet). ATTRIBUTES 0xU0447 CD-3-01 Attribute values and their types are compatible.
class A { int att = false; } class A { boolean att = false; }
0xU0983, 0xU0450, 0xU0449? CD-3-04 There is an initialization for derived attributes.
class A { derived int att; } class A { derived int att = 0; }
0xU0451, 0xU0452 CD-3-03 Final attributes are initialized in the declaration.
class A { final int att; } class A { final int att = 0; }
0xU0453 CD-1-22 An interface’s non-final attributes are NOT initialized.
interface I { int att = 0; } interface I { final int att = 0; }
INHERITANCE 0xD0013 / Your CD model do NOT contain multi-inheritance (which is not supported by the dex-generator yet).
class A; class B; class C extends A,B; class A; interface B; class C extends A implements B;
0xU0531 CD-1-06, Your CD model do NOT contain inheritance cycles.
class A extends B; class B extends A; class A extends B; class B;
8