PDA

View Full Version : [FIXED] [2.0-m1] MultiField.isValid() causes StackOverflowError



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

moldoe
11 May 2009, 6:20 AM
Can anyone confirm if this is a bug or not?

Thanks,

Daniel

sven
11 May 2009, 6:27 AM
Yes and it will be fixed in the next milestone.

moldoe
11 May 2009, 6:29 AM
Thank you, Sven.

sven
13 May 2009, 8:16 AM
Fixed in SVN.