Wednesday, January 25, 2012

AutoBeanCodex problems

I detected at least 2 bugs with the AutoCodex feature:

When trying to deserialize a Collection out of JSON it fails because
there are 2 coders in the stack.

When trying to deserialize a Long it fails too.

Eg:
CalueCodex.java:132

LONG(Long.class, long.class, 0L) {
@Override
public Long decode(Class<?> clazz, Splittable value) {
return Long.parseLong(value.asString());
}

value (JSONSplittable) = "2.0"
value.asString() = null

which ends up throwing NumberFormatException("null");

Is it an experimental version or something?

Cheers,
Jordi.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment