It does not appear to be picking up the type from the annotation. For example, when I run
the org.jboss.test.xb.builder.object.mc.test.BeanTestCase.testBeanWithAnnotation test, its
failing with an attempt to create an interface instance:
anonymous wrote :
| Caused by: org.jboss.joinpoint.spi.JoinpointException: Constructor not found
org.jboss.test.xb.builder.object.mc.support.model.AnnotationMetaData[] no constructors
| at org.jboss.joinpoint.plugins.Config.findConstructorInfo(Config.java:276)
| at org.jboss.joinpoint.plugins.Config.getConstructorJoinpoint(Config.java:150)
| at
org.jboss.beans.info.plugins.AbstractBeanInfo.newInstance(AbstractBeanInfo.java:221)
| at
org.jboss.beans.info.plugins.AbstractBeanInfo.newInstance(AbstractBeanInfo.java:216)
| at org.jboss.xb.spi.AbstractBeanAdapter.construct(AbstractBeanAdapter.java:115)
|
The corresponding property is annotated with the concrete type that should be used
however:
| @XmlElement(name="annotation", type=AbstractAnnotationMetaData.class)
| public void setAnnotations(Set<AnnotationMetaData> annotations)
| {
| this.annotations = annotations;
| flushJBossObjectCache();
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088147#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...