Alexey Kazakov created JBIDE-10766:
--------------------------------------
Summary: 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
Reporter: Alexey Kazakov
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 {
@Destroy
@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