From: Manuel Carrasco MoƱino Date: Sun, 19 Jan 2014 22:22:22 +0000 (+0000) Subject: Fix get method in jre X-Git-Tag: gwtquery-project-1.4.3~44^2~13^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5005837513b7f28a5200d6c69fd89c21c711ec2;p=gwtquery.git Fix get method in jre --- 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;