Let the Key for Maps be of type Object.
[JSR 303 TCK Result] 110 of 257 (42.80%) Pass with 20 Failures and 9 Errors.
Review at http://gwt-code-reviews.appspot.com/1376803
Review by: rchandia@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9829 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java b/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java
index 576c43d..b42b4e7 100644
--- a/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java
+++ b/user/src/com/google/gwt/validation/client/impl/GwtValidationContext.java
@@ -102,10 +102,9 @@
/**
* Append a keyed node to the path.
*
- * @param name
* @return the new GwtValidationContext.
*/
- public GwtValidationContext<T> appendKey(String name, String key) {
+ public GwtValidationContext<T> appendKey(String name, Object key) {
GwtValidationContext<T> temp = new GwtValidationContext<T>(rootBean,
beanDescriptor, messageInterpolator, validator, validatedObjects);
temp.path = path.appendKey(name, key);
diff --git a/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java b/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java
index e5f5329..eafec76 100644
--- a/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java
+++ b/user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java
@@ -1182,10 +1182,10 @@
sw.indent();
sw.indent();
- // context.appendKey("myProperty",String.valueOf(entry.getKey())),
+ // context.appendKey("myProperty",entry.getKey()),
sw.print("context.appendKey(\"");
sw.print(p.getPropertyName());
- sw.println("\",String.valueOf(entry.getKey())),");
+ sw.println("\",entry.getKey()),");
// entry.getValue(), groups));
sw.println("entry.getValue(), groups));");
diff --git a/user/test/org/hibernate/jsr303/tck/tests/validation/PropertyPathGwtTest.java b/user/test/org/hibernate/jsr303/tck/tests/validation/PropertyPathGwtTest.java
index 4a1615c..3bd146b 100644
--- a/user/test/org/hibernate/jsr303/tck/tests/validation/PropertyPathGwtTest.java
+++ b/user/test/org/hibernate/jsr303/tck/tests/validation/PropertyPathGwtTest.java
@@ -48,7 +48,6 @@
delegate.testPropertyPathWithList();
}
- @Failing(issue = 5803)
public void testPropertyPathWithMap() {
delegate.testPropertyPathWithMap();
}