B
Benjamin Johnston
Is there a simple way of reversing the effect of
Class.getComponentType? I want to find the array type for a given
class.
I could instantiate a new array using Array, and then call getClass on
that. Or I could surround the results from Class.getName with "[L" ...
";" (or just prefix "[") as appropriate and call Class.forName, but
neither of these seem satisfying.
Thanks a lot,
-Benjamin Johnston
(e-mail address removed)
Class.getComponentType? I want to find the array type for a given
class.
I could instantiate a new array using Array, and then call getClass on
that. Or I could surround the results from Class.getName with "[L" ...
";" (or just prefix "[") as appropriate and call Class.forName, but
neither of these seem satisfying.
Thanks a lot,
-Benjamin Johnston
(e-mail address removed)