Fwd: [jsr-303-eg] Make payload optional
by Emmanuel Bernard
Begin forwarded message:
> From: Emmanuel Bernard <emmanuel.bernard(a)jboss.com>
> Date: July 3, 2009 11:58:46 CEDT
> To: Java Community Process JSR #303 Expert List <JSR-303-EG(a)jcp.org>
> Subject: [jsr-303-eg] Make payload optional
> Reply-To: jsr-303-eg(a)jcp.org
>
> I was talking to Mike Keith from Oracle the other day and he became
> concerned at us adding more and more mandatory attributes to
> constraint definitions.
>
> He was proposing to make the payload attribute optional. In other
> words, custom annotations would not have to add this property,
> though the spec would recommend it and all built-in annotations
> would have it.
> The idea is to keep life easy for constraint developers.
>
> I am sympathetic to the idea, anybody fiercely against?
>
> PS: Mike was also arguing for making groups optional but I am more
> reluctant on that, groups has become an important mechanism in BV,
> so I would keep that mandatory. Thoughts?
15 years, 5 months
Wrong javadoc in Validator API
by Hardy Ferentschik
Hi,
I think there is another error in the Validator javadoc. Probably a
cut&paste error
* @throws IllegalArgumentException if object is null, if propertyName
null, empty
* or not a valid object property
* or if null is passed to the varargs
groups
* @throws ValidationException if a non recoverable error happens
* during the validation process
*/
<T> Set<ConstraintViolation<T>> validateValue(Class<T> beanType, String
propertyName, Object value, Class<?>... groups);
IllegalArgumentException if object is null seems to be wrong. Probably
should be "if beanType is null". null as value seems to be a valid case.
--Hardy
15 years, 6 months
Development status of Hibernate Shards
by Ruben Jarque
Hello,
Hibernate Shards is still in a beta version, and I have checked the project
has not had too much activity in the last two years. Are expected new
releases in a near future? Have the goals of the project been integrated in
other project?
--
Rubén Jarque
15 years, 6 months