MathewWi / umple

Automatically exported from code.google.com/p/umple
0 stars 0 forks source link

When having multiple constraints, the constraint error message in constructor seems to have issues #599

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When we define more than one constraint for different attributes in a class, 
the generated constraint message error in the constructor seems to wrongly 
concatenate the attributes more than one time, and misplace the comma separator.

Try this umple model:
class X {

  Integer i;
  Integer j;

  [i > j]
  [i < 5]
  [i > 10]
  [i != 14]
}

In the generated constructor message, we will have:
throw new RuntimeException("Please provide a valid i and j i i i");

What is the expected output? What do you see instead?
The generated constructor error message shall be:

throw new RuntimeException("Please provide valid i and j");

Please use labels and text to provide additional information.
N/A

Original issue reported on code.google.com by ahmedvc@gmail.com on 28 Jun 2014 at 4:52

GoogleCodeExporter commented 9 years ago

Original comment by ahmedvc@gmail.com on 9 Jul 2014 at 10:05

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 24 Jul 2014 at 2:56