[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-2451) Seam validation rule "Only component class can have @Destroy method" does not work.

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Mon Jun 30 11:08:31 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBIDE-2451?page=all ]

Alexey Kazakov resolved JBIDE-2451.
-----------------------------------

    Resolution: Done

> 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: Alexey Kazakov
>             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