moldoe
6 May 2009, 6:41 AM
Hi guys,
I just stepped into this bug where when I call isValid() method on a MultiField instance I get StackOverflowError. There's no need for sample code because the cause is pretty clear.
I think the method isValid() from Multifield class should call
super.isValid(silent) instead of
super.isValid()The new version would be:
@Override
public boolean isValid(boolean silent) {
boolean ret = super.isValid(silent);
for (Field<Object> f : fields) {
if (!f.isValid(silent)) {
return false;
}
}
return ret;
}Thanks,
Daniel
I just stepped into this bug where when I call isValid() method on a MultiField instance I get StackOverflowError. There's no need for sample code because the cause is pretty clear.
I think the method isValid() from Multifield class should call
super.isValid(silent) instead of
super.isValid()The new version would be:
@Override
public boolean isValid(boolean silent) {
boolean ret = super.isValid(silent);
for (Field<Object> f : fields) {
if (!f.isValid(silent)) {
return false;
}
}
return ret;
}Thanks,
Daniel