commit | dda4b6153ae8b8c1f05a6fe61142cddf290a201a | [log] [tgz] |
---|---|---|
author | nchalko@google.com <nchalko@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Mon Dec 20 16:45:24 2010 +0000 |
committer | nchalko@google.com <nchalko@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Mon Dec 20 16:45:24 2010 +0000 |
tree | 366d371d8d45108b95430a6859c90594191eeadc | |
parent | 3031072b1aab0c5a80077f0b9e8c67a745152a97 [diff] |
beanType is a Class, no need to call getClass to compare it to a class. This fixes a bug where all calls to validateValue were failing. [JSR 303 TCK Result] 36 of 258 (13.95%) Pass with 15 Failures and 43 Errors. Review at http://gwt-code-reviews.appspot.com/1233801 Review by: rchandia@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9466 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java b/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java index 2cd8d5a..fd8df74 100644 --- a/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java +++ b/user/src/com/google/gwt/validation/rebind/ValidatorCreator.java
@@ -278,7 +278,7 @@ } private void writeValidateValue(SourceWriter sw, BeanHelper bean) { - sw.println("if (beanType.getClass().equals(" + bean.getTypeCanonicalName() + sw.println("if (beanType.equals(" + bean.getTypeCanonicalName() + ".class)) {"); sw.indent(); writeContext(sw, bean, "null");