This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: arrays -vs- reflection
- To: tromey at redhat dot com, java-discuss at sources dot redhat dot com
- Subject: Re: arrays -vs- reflection
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Mon, 15 Jan 2001 14:17:48 +1300
- References: <87snmlhbcs.fsf@creche.redhat.com>
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 ]