aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2014-01-19 22:22:22 +0000
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2014-01-19 22:22:22 +0000
commitd5005837513b7f28a5200d6c69fd89c21c711ec2 (patch)
tree29ecefc32da3c197dc70e4ef5b4a8cb849d30bf5
parent66b15fa9b6e16a5e5fd17b43e28e81eaa2afaf34 (diff)
downloadgwtquery-d5005837513b7f28a5200d6c69fd89c21c711ec2.tar.gz
gwtquery-d5005837513b7f28a5200d6c69fd89c21c711ec2.zip
Fix get method in jre
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java b/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java
index d234d854..05c2bff0 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/vm/JsonFactoryJre.java
@@ -191,6 +191,9 @@ public class JsonFactoryJre implements JsonFactory {
} else if (largs == 0 || mname.startsWith("get")) {
Class<?> ret = method.getReturnType();
return getValue(null, 0, jsonObject, attr, ret, method);
+ } else if (largs == 2 && mname.equals("set")) {
+ setValue(null, jsonObject, String.valueOf(args[0]), args[1], method);
+ return proxy;
} else if (largs == 1 || mname.startsWith("set")) {
setValue(null, jsonObject, attr, args[0], method);
return proxy;