[Java] Component types on generic arrays are lost during (de-)serialization #1323
Closed
1 of 2 tasks
Labels
bug
Something isn't working
Search before asking
Version
Component(s)
Java
Minimal reproduce step
What did you expect to see?
A successfull run of the program
What did you see instead?
Anything Else?
It appears that the information about the component type (here
String.class
) are lost and the (de-) serializer simply assumes "Generic Type? => Object!". The problem here is that one cannot simply replace theArray.newInstance(clazz, capacity);
withnew Object[capacity];
because then thewrapper.array[0] = "Hello";
statement fails with the same error.Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: