I've been migrating a project from the Hibernate JSR-303 implementation to
Bval and come across an odd corner case.

If I define an accessor to a Boolean property with the 'is' prefix, I get
an IllegalArgumentException using Validator#validateValue.

Switching to either a 'get' prefix or returning a primitive boolean brings
me back to expected behaviour.

There's a test case here
https://gist.github.com/tonybaines/1875be338c3545763245#file-booleanvalidationtest-java

I'll take a look at the Bval code myself, but any suggestions for something
I've missed would be welcome (I couldn't find anything similar in JIRA).

Thanks
~Tony


-- 

~Tony

Reply via email to