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

User Manual    [Previous]   [Next]   

W033 Missing Superclass

Umple semantic warning issued when a referenced superclass is not found

When you declare a superclass of a class, that class must exist. If the class does not exist, then this warning is issued.

It might be the case that the class is in fact declared in some code that is defined externally. In that case, the existence of the external class should be made known to Umple using the external keyword, such as in the second example.

Example

// This example generates the warning
// since T is not defined
class S {
  isA T;
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

// This example solves the problem
// by defining T as an external class
// Umple will not generate any code for T,
// but now knows it exists
class S {
  isA T;
}
external T {};

      

Load the above code into UmpleOnline