You're right.
You need superclass.
I had a superclass/interface reference, but the instance was similar to
yours. That's why it worked for me.
> configuration.getTypeInfo(...) may be a wrong way to load a
generic
type
but even if I declare a field of type JBossEnterpriseBeansMetaData and
But I don't understand this.
Cheers,
Ales
>>>>>>>>>
No, it won't.
This
ClassInfo classInfo = (ClassInfo)
configuration.getTypeInfo(JBossEnterpriseBeansMetaData.class);
System.out.println("isCollection: " + classInfo.isCollection());
System.out.println("type args: " +
classInfo.getActualTypeArguments());
System.out.println("superclass args: " +
Arrays.asList(classInfo.getGenericSuperclass().getActualTypeArguments()));
results in
isCollection: true
type args: null
superclass args:
[ReflectClassInfoImpl(a)f38798{name=org.jboss.ejb.metadata.spec.EnterpriseBeanMetaData},
ReflectClassInfoImpl(a)4b222f{name=org.jboss.ejb.metadata.jboss.JBossEnterpriseBeanMetaData},
ReflectClassInfoImpl(a)b169f8{name=org.jboss.ejb.metadata.spec.EnterpriseBeansMetaData}]