Berfy / google-gson

Automatically exported from code.google.com/p/google-gson
1 stars 0 forks source link

Cannot deserialize array of unknown type #297

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See the test case at: 
http://stackoverflow.com/questions/5143842/cannot-deserialize-array-of-unknown-t
ype-using-gson-w-java

Discussed at Gson group thread: 
http://groups.google.com/group/google-gson/browse_thread/thread/68c6365b89940b0a

Original issue reported on code.google.com by inder123 on 14 Mar 2011 at 7:42

GoogleCodeExporter commented 9 years ago
Guice's Types.arrayOf() method would work here. I don't think we want to 
include that in Gson, but we should push to get it included in Guava.

http://google-guice.googlecode.com/git/javadoc/com/google/inject/util/Types.html
#arrayOf(java.lang.reflect.Type)

Original comment by limpbizkit on 29 Dec 2011 at 7:33