On 2009-10-02 17.20, Niclas Hedhman wrote:
Rickard,

this problem resides in ValueTypeFactory.addProperties() and the statement;

if( returnType instanceof ParameterizedType&&  ( (ParameterizedType)
returnType ).getRawType().equals( Property.class ) )

I suspect that the .equals() should be an
Property.class.isAssignableFrom() instead. Please confirm...

Yes, that seems to be the case.

Also, how come this check is so complex, compared to the
PropertyMixin.PropertyFilter, which doesn't bother with the
ParameterizedType... IMHO, we should probably centralize the probe of
determining the method being a property or not.

Yes, having a single method for testing this would be a good idea.

/Rickard

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

Reply via email to