Why Arrayish implements Cloneable?

Paul Benedict pbenedict at apache.org
Wed Apr 27 14:32:10 UTC 2016


Oh, okay ... so basically when you let the native "any" type be boxed,
you're exposing the same functionality through an interface.

Cheers,
Paul

On Wed, Apr 27, 2016 at 9:25 AM, Brian Goetz <brian.goetz at oracle.com> wrote:

> Because array types (int[], String[]) *already* implement Cloneable and
> Serializable.
>
>
>
>
>
> On 4/27/2016 10:18 AM, Paul Benedict wrote:
>
>> I only ask because Cloneable is typically looked at as a poor mechanism
>> for
>> duplicating objects. That's the sentiment, anyway, widely popularized by
>> the Effective Java book.
>>
>> Cheers,
>> Paul
>>
>
>



More information about the valhalla-dev mailing list