[jboss-user] [JBoss Tools (users)] - IDE error: Only component class can have @Destroy method

ereztison do-not-reply at jboss.com
Fri Nov 23 04:16:50 EST 2007


I have a class named Foo annotated as seam component (@Name), and a  destroy() method annotated with @Remove @Destroy. till here all is fine

When declaring an inner class FooInner within class Foo, suddenly an IDE error will appear in the Problems view saying: Only component class can have @Destroy method "destroy"

I found a workaround for that at http://jira.jboss.com/jira/browse/JBIDE-1295 which seems to be already resolved, the workaround is to set Warning/Ignore for Preferences/JBoss Tools/Web/Seam/Validator/Component life-cycle methods

It would be nice if this similar issue will be resolved as well

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

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



More information about the jboss-user mailing list