| commit | cac3916e61e685b2648f9e665a5200c50ebc502a | [log] [tgz] |
|---|---|---|
| author | bobv@google.com <bobv@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Sep 08 13:58:48 2010 +0000 |
| committer | bobv@google.com <bobv@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Sep 08 13:58:48 2010 +0000 |
| tree | 0f866c23db5181bdff6bc4a2da14cfba31926b97 | |
| parent | 66659bf26ba8a801e8be5d01cbce4b3e3cdf396b [diff] |
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