Reflection API Method.invoke() return values

Status
You're currently viewing only wb's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

wb

Ars Legatus Legionis
25,208
Subscriptor
The returned Object is in fact [I, by doing getClass{}.getName(). What class is [I exactly? It will not cast to anything useful, and appears to contain no useful data. Yes, my method returns valid data - it is hard coded into that method.
IIRC [I is an int[]. Arrays in java behave like pseudo-objects as near as I can tell. E.g. they all have a length property, and pass as references into methods.
 
Status
You're currently viewing only wb's posts. Click here to go back to viewing the entire thread.
Not open for further replies.