Update TypeAccessor.BOOL.canSet() to reflect the types that its toBoolean() method will accept.
Patch by: bobv
Review by: kjin

Review at http://gwt-code-reviews.appspot.com/852801


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@8729 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/rpc/server/CommandSerializationUtil.java b/user/src/com/google/gwt/rpc/server/CommandSerializationUtil.java
index 9e68812..5a88036 100644
--- a/user/src/com/google/gwt/rpc/server/CommandSerializationUtil.java
+++ b/user/src/com/google/gwt/rpc/server/CommandSerializationUtil.java
@@ -72,7 +72,9 @@
     BOOL {
       @Override
       public boolean canSet(Class<?> clazz) {
-        return Boolean.class.isAssignableFrom(clazz);
+        return Boolean.class.isAssignableFrom(clazz)
+            || Number.class.isAssignableFrom(clazz)
+            || String.class.isAssignableFrom(clazz);
       }
 
       @Override