Reviewers: Nick Chalko, cromwellian,

Description:
Prevent code for constraints which are not in the groups listed in the
@GwtValidation annotation from being generated. This greatly simplifies
the creation of server-side-only constraints which will not compile
using GWT - just put those contratins in a "server side" group and be
sure to not list this group in the @GwtValidation annotation of the
Validator.

Also noticed and fixed a few validator factories which did not
explicitly list all groups of a group sequence in the @GwtValidation
"groups" field.

[JSR 303 TCK Result] 191 of 192 (99.48%) Pass with 0 Failures and 0
Errors.


Please review this at http://gwt-code-reviews.appspot.com/1802805/

Affected files:
  M user/src/com/google/gwt/validation/rebind/BeanHelperCache.java
M user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java
  M user/src/com/google/gwt/validation/rebind/ValidatorGenerator.java
M user/test/com/google/gwt/validation/example/ExampleValidationClientGwtSuite.java M user/test/com/google/gwt/validation/example/client/ExampleValidatorFactory.java A user/test/com/google/gwt/validation/example/client/NotSpecifiedGroupsTest.java
  A user/test/com/google/gwt/validation/example/client/ServerConstraint.java
  A user/test/com/google/gwt/validation/example/client/ServerValidator.java
M user/test/org/hibernate/jsr303/tck/tests/constraints/groups/GroupSequenceContainingDefaultValidatorFactory.java M user/test/org/hibernate/jsr303/tck/tests/constraints/groups/GroupSequenceWithNoImplicitDefaultGroupValidatorFactory.java M user/test/org/hibernate/jsr303/tck/tests/constraints/groups/TckTestValidatorFactory.java M user/test/org/hibernate/jsr303/tck/tests/constraints/groups/groupsequenceisolation/TckTestValidatorFactory.java M user/test/org/hibernate/jsr303/tck/tests/metadata/TckTestValidatorFactory.java
  M user/test/org/hibernate/jsr303/tck/util/TckCompileTestCase.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to