Code review request for 4881419 The type of X.clone() should be X
martinrb at google.com
Fri Sep 3 00:46:55 UTC 2010
The usage T suggests that T is a reference type, as with generics, which
is not the case here.
More precisely, both the runtime types and compiletime types of the object
returned from clone of any array is identical to its input.
Is there a non-confusing way of saying that?
On Thu, Sep 2, 2010 at 17:33, Joe Darcy <joe.darcy at oracle.com> wrote:
> Please review my spec clarification fix for
> 4881419 "The type of X.clone() should be X"
> The statement about the return type of the clone method for an array is
> given in JLSv3 section 6.4.5:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the core-libs-dev