BTW, could be related to http://issues.ops4j.org/browse/QI-181
regards,
philippe
philippe van dyck wrote:
> I've been looking into Qi4J these last months and I plan to use the
0.7
> core release. Great work !
>
> However I have a problem with a recent change in ValueCompositeType :
>
> public static boolean isValueComposite( Type type )
> {
> return type instanceof Class && ((Class)type).isInterface();
> }
>
> Here is the previous version:
>
> public static boolean isValueComposite( Type type )
> {
> return type instanceof Class &&
> ValueComposite.class.isAssignableFrom( (Class) type );
> }
>
> The effect of this change is that there is no support for simple
> serializable interfaces any more and all interfaces must be
assignable
> to the ValueComposite class (or it will fail with a class cast
exception
> later in
org.qi4j.runtime.service.ServiceReferenceInstance.getInstance()).
>
> Since when I go back to the previous version everything in 'core'
seems
> to be working, could you please explain the idea behind this
limitation ?
... [show rest of quote]
Hm.. that doesn't sound right. There is also a SerializableType, which
should catch all non-Value things, including ValueComposites that extend
plain interfaces.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev