This content has been marked as final.
Show 2 replies
-
1. Re: Seam Validator: @Remove & @Destroy errors
akazakov Jan 25, 2008 8:29 AM (in response to sannegrinovero)"sannegrinovero" wrote:
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.
Yes, you are rigth. This is a bug. Please, submit it to JIRA."sannegrinovero" wrote:
A second problem I have with the same validator isDuplicate @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.
And there is another bug :) The validator should check duplicate @Remove method only for stateful session bean component. Please, submit it to JIRA too."sannegrinovero" wrote:
I didn't know I couldn't have multiple @Remove on an entity, is that true?
At least Seam does not allow to have multiple @Remove in stateful session bean components.
If you try then Seam throws IllegalArgumentException("Stateful session bean component must have a method with no parameters marked @Remove: " + name); -
2. Re: Seam Validator: @Remove & @Destroy errors
sannegrinovero Jan 25, 2008 1:15 PM (in response to sannegrinovero)I opened:
http://jira.jboss.com/jira/browse/JBIDE-1691
and
http://jira.jboss.com/jira/browse/JBIDE-1690
(this one is already resolved, you're very fast!!)
should i close it ?
thanks!