diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2014-01-19 22:22:22 +0000 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2014-01-19 22:22:22 +0000 |
commit | d5005837513b7f28a5200d6c69fd89c21c711ec2 (patch) | |
tree | 29ecefc32da3c197dc70e4ef5b4a8cb849d30bf5 | |
parent | 66b15fa9b6e16a5e5fd17b43e28e81eaa2afaf34 (diff) | |
download | gwtquery-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.java | 3 |
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; |