Try this model:
// Example with a few more operators
class X {
Integer age;
[age > 18]
[age < 99]
}
The "setAge" method will contain nested if condition calls for each constraint
rule:
if (aAge>18)
{
if (aAge<99)
{
age = aAge;
wasSet = true;
}
}
What is the expected output? What do you see instead?
We shall have all of these checks only in one if condition instead.
There seems also to be an indent issue.
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:53
Original issue reported on code.google.com by
ahmedvc@gmail.com
on 28 Jun 2014 at 4:53