You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by Chad Schoettger <ch...@gmail.com> on 2005/10/10 23:51:15 UTC

[PATCH] BEEHIVE-957 Validation on AnnotationMemberTypes.Date is allowing invalid value

I have attached a patch for BEEHIVE-957 and BEEHIVE-206. It is a small
change to the AnnotationConstraintValidator:

1) Update parseDate() method to check for cases where the entire date string
value is NOT parsed -- for cases like '12/04/2001x'. Previously this case
would not trigger an error. Now it will at compile time.
2) Update the error messages when a date parse fails to be more informative
about what was expected and which value couldn't be parsed.

Any comments welcome.

- Chad