Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdi-dev] History of/rationale for type closure rules for producer method return types?

> So, it wasn't guaranteed that arrays implement Cloneable and Serializable interfaces.

Unclear. Since JLS 1.2:
 5.1.7  Forbidden Conversions
 There is no permitted conversion from any array type to any interface
type, except to the interface types java.io.Serializable and
Cloneable, which are implemented by all arrays.
(see also 5.1.4 Widening Reference Conversions there)

Piotrek


Back to the top