[jbosstools-issues] [JBoss JIRA] (JBIDE-10766) Seam quick fixes insert incorrectly formated code

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Fri Feb 3 13:26:48 EST 2012


     [ https://issues.jboss.org/browse/JBIDE-10766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov resolved JBIDE-10766.
------------------------------------

      Assignee: Daniel Azarov  (was: Alexey Kazakov)
    Resolution: Done


Fixed.
                
> Seam quick fixes insert incorrectly formated code
> -------------------------------------------------
>
>                 Key: JBIDE-10766
>                 URL: https://issues.jboss.org/browse/JBIDE-10766
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam 2
>    Affects Versions: 3.3.0.Beta1
>            Reporter: Alexey Kazakov
>            Assignee: Daniel Azarov
>             Fix For: 3.3.0.Beta1
>
>
> 1. Create a Seam project.
> 2. Create a statefull component:
> {code}
> package org.domain.seamdemo.session;
> import javax.ejb.Remove;
> import javax.ejb.Stateful;
> import org.jboss.seam.annotations.Name;
> import org.jboss.seam.annotations.Destroy;
> @Stateful
> @Name("DemoForm")
> public class DemoFormBean {
>     @Remove
>     public void destroy() {}
> }
> {code}
> 3. There is a warning about missing @Destory method. Fix it using "Add @Destory method" quick fix.
> 4. See the result:
> {code}
> package org.domain.seamdemo.session;
> import javax.ejb.Remove;
> import javax.ejb.Stateful;
> import org.jboss.seam.annotations.Name;
> import org.jboss.seam.annotations.Destroy;
> @Stateful
> @Name("DemoForm")
> public class DemoFormBean {
>     @Destroy
> @Remove
>     public void destroy() {}
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list