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");