[jboss-user] [JBoss Tools (users)] - Seam Validator: @Remove & @Destroy errors

sannegrinovero do-not-reply at jboss.com
Fri Jan 25 05:52:22 EST 2008


Hi, I'm using JBoss Developer Studio (licensed).
I've found some little bugs I would like to discuss before submitting to JIRA,
to get your approval.

Seam Validator has this problems:

- It gives me false errors about
Stateful component "mybean" must have a method marked @Destroy"
and
Stateful component "mybean" must have a method marked @Remove"

The validor is partially right, as these class doesn't have these methods, but they are inherited: I think the validator should look also on annotations of superclasses. I had to disable this validation, but it looks very usefull.

A second problem I have with the same validator is
Duplicate @Remove method "methodname"
even on standard beans (non-entity). The configuration panel for the validator has a section to control this, but looks to be only for entities. This is not an entity, still I can disable it there as a workaround.

Even for this one, it is very nice to have this validation and it's a pity I have to disable them. I didn't know I couldn't have multiple @Remove on an entity, is that true?

Should I submit these two problems to JIRA?
I would love to submit my own fix, but need some expert to coach and supervise me.

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

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



More information about the jboss-user mailing list