Neseek77 / gwt-ent

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

creating a typed array using reflection #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
there seems to be no good way to create a typed array using the reflection type 
info, thus, the best one can do is create an array of objects which cannot be 
easily casted in to the typed array. 

Original issue reported on code.google.com by Tomer.Do...@gmail.com on 27 Oct 2010 at 8:57

GoogleCodeExporter commented 8 years ago
still trying to find out if there an equivalent in the reflection library to 
java.lang.reflect.Array? i am specifically interested in an equivalent 
to Array.newInstance and Array.set to construct dynamically typed arrays. to 
elaborate on the issue: there seems to be no good way to create a typed array 
dynamically using the reflection type info, thus, the best 
one can do is create an array of objects which cannot be easily casted in to 
the typed array. 

suggestions are welcome.

Original comment by tomer.do...@simbit.org on 10 Apr 2011 at 1:58