JSON discrepancy in gwt-dev.jar vs. json-20090211.jar
JSONNumber: int width = (int)jsonObject.get("width").isNumber().doubleValue();
Use the wrong one and an exception is thrown.
I think that json-20090211.jar is the correct approach. Certainly AutoBean would fail if it got a string vs a number for an integer field (or maybe just a zero value?).One can get the same results with the Ant in devmode by removing <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/> from project.class.path and adding it only to the gwtc and devmode targets (and any target using GWTTestCase). However I think that GWT should be brought in line with json-20090211.jar. (Looking at the tools directory for building GWT, it seems the JSON used (r2_20080312) is not a version available from mavenrepository.com.)
Has anyone else seen this? I don't see an issue filed on it. I'm happy to put one in, but I thought I'd raise it here first.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home