2009/1/12 Niclas Hedhman <[email protected]>

> On Mon, Jan 12, 2009 at 5:17 PM, Niclas Hedhman <[email protected]>
> wrote:
>
> > Suggestion;
> > "The generic type of a Property must be a fully Serializable type, and
> > must not have any injected members."
>
> Actually, it is not the type that needs to be Serializable, but the
> instance that is assigned to it.
> This poses the question; Should we require the type to be Serializable
> and change the Property definitions to
>
> public interface Property<T extends Serializable>
>    extends PropertyInfo
>
> or should we require the set() method to do the check and fail if the
> instance is not Serializable,
>
> or just let things fail 'late'?
>
> I am in the position of the first, purely because I love compile time
> support.
>

yep, I'd lean towards <T extends Serializable> for the extra type-safety

Cheers
> Niclas
> --
> http://www.qi4j.org - New Energy for Java
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>

-- 
Cheers, Stuart
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to