[jboss-dev-forums] [Design of JBossXB] - annotations on properties declared in interfaces

alex.loubyansky@jboss.com do-not-reply at jboss.com
Thu Oct 25 09:54:10 EDT 2007


If an interface declares a property and an implementation class has annotations on getter/setter, those annotations are not seen using org.jboss.beans.info.spi API. Is this a bug?

An example could be
class org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData
property enterpriseBeans
declared by interface IEnterpriseBeanMetaData

If I add @XmlElement on enterpriseBeans' setter, property.getUnderlyingAnnotation(XmlElement.class) will return null.
property.getBeanInfo() returns org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098827#4098827

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098827



More information about the jboss-dev-forums mailing list