This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: arrays -vs- reflection


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 ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]