I cannot build the Java robot api with JDK 1.6 because of the public <T> T
deserialize(JsonElement json, Type type) method in EventSerializerTest.
There is a bug in javac
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954) where the
behavior is different between 1.5 and 1.6. The Eclipse compiler doesn't
have this issue, which is why you may not have noticed this
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=98379).
For compatibility, I suggest changing the implementation of that method
(line 61) to "return (T) gson.fromJson(json, type);", to avoid inference by
explicitly casting.
Original issue reported on code.google.com by keeganw...@gmail.com on 6 Jun 2010 at 10:03
Original issue reported on code.google.com by
keeganw...@gmail.com
on 6 Jun 2010 at 10:03