[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-2451) Seam validation rule "Only component class can have @Destroy method" does not work.
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Fri Jun 27 09:38:45 EDT 2008
Seam validation rule "Only component class can have @Destroy method" does not work.
-----------------------------------------------------------------------------------
Key: JBIDE-2451
URL: http://jira.jboss.com/jira/browse/JBIDE-2451
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam
Affects Versions: 3.0.0.alpha
Reporter: Alexey Kazakov
Assigned To: Viacheslav Kabanovich
Fix For: 3.0.0.alpha
EXECUTE: Create seam war project.
EXECUTE: Create java class with @Destroy but without @Name:
...
public class Test {
@Destroy
public void destroyMethod(){}
}
EXECUTE: Add this class to components.xml: <component class="...Test" name="testComponent" scope="application"/>
EXECUTE: build the project.
ASSERT: There is not error markers in Test.java
EXECUTE: Remove <component class="...Test" name="testComponent" scope="application"/> from components.xml. Test.java is not component anymore.
FAILURE: There is not error markers in Test.java. But there should be an error "Only component class can have @Destroy method.."
There is not component "testComponent" anymore (that's rigth) in seam model but there are java and xml seam decalarations in model (that's a problem).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list