I have a class with a data type referenced Array<?>
. I then have a function that returns an object. When I try to find out the class of the object, I cannot find the type of object it contains. o.getClass().getName()
returns manager.constructors.Array
without the datatype <U>
.
Asked
Active
Viewed 22 times
0
![](../../users/profiles/12664976.webp)
trBlueJ
- 35
- 4
-
2Does this answer your question? [Get generic type of class at runtime](https://stackoverflow.com/questions/3403909/get-generic-type-of-class-at-runtime) – Cardinal System Jan 07 '20 at 01:25
-
That doesn't answer it as I am getting it as an object and I can't cast it to the array without the type. – trBlueJ Jan 08 '20 at 05:42