arrays -vs- reflection
Bryce McKinlay
bryce@albatross.co.nz
Sun Jan 14 17:14:00 GMT 2001
Tom Tromey wrote:
> About the recent discussion of arrays and their reflection data: an
> array can't have the same method data as Object. That's because an
> array's clone() method is public while Object.clone() is protected.
This is a bug we share with Sun's implementation. The clone method
does not show up when calling getMethods() on an array class there
either.
If anyone cares (doubt it), we can always (ab)use another field for
the element type pointer.
regards
[ bryce ]
More information about the Java
mailing list