dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

Cannot build with JDK 1.6 #782

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Thanks for filing, we're looking into this.

Original comment by pamela.fox on 10 Jun 2010 at 12:33

GoogleCodeExporter commented 8 years ago

Original comment by pamela.fox on 16 Jun 2010 at 10:18