Alexey had some more problems:
| I think I figured it out...
|
| AbstractManagedObjectFactory:
| public ManagedObject buildManagedObject(Class<? extends Serializable> clazz)
| {
| if (managed)
| {
| TypeInfo typeInfo = propertyInfo.getType();
| if( typeInfo.isArray() || typeInfo.isCollection() )
| metaType = new ArrayMetaType(1, MANAGED_OBJECT_META_TYPE);
| else
| metaType = MANAGED_OBJECT_META_TYPE;
| }
| else
| {
| metaType = metaTypeFactory.resolve(propertyInfo.getType());
| }
|
| should create CollectionMetaType for collections.
Once I've fixed this, I had to update MockProfileService as well.
So this means that the real ProfileServiceImpl must be updated as well.
This can be my TODO, or see how this was done in the mock.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113611#4113611
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113611
"scott.stark(a)jboss.org" wrote : OK.
I've updated and commited commons core.
And I'll comment this code in IntrospectionTypeInfoFactoryImpl
| protected TypeInfo getGenericArrayType(GenericArrayType type)
| {
| Type compType = type.getGenericComponentType();
| TypeInfo componentType = getTypeInfo(compType);
| return new ArrayInfoImpl(componentType);
| }
|
otherwise current MC build would complain.
So, once you've updated Commons-core, please uncomment this code. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113606#4113606
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113606