3 Replies Latest reply on Nov 25, 2007 3:41 AM by ereztison

    IDE error: Only component class can have @Destroy method

    ereztison Newbie

      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