list of dots

User Manual    [Previous]   [Next]   

E081 Invalid Multivalued Attribute Assignment

Umple semantic error raised when initializing multivalued attributes with invalid values

When indicating initial values for a multivalued attribute, an error is raised if the values to assign cannot be parsed properly.
The error might be caused by a typographical mistake.

Example

//The attribute attr cannot be initialized
//as the values are not correct
class A {
  String[] attr = {invalid.values};
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//attr can now be initialized
class A {
  String[] attr = {"valid", "values"};
}
      

Load the above code into UmpleOnline