[
https://issues.jboss.org/browse/JBIDE-10766?page=com.atlassian.jira.plugi...
]
Martin Malina closed JBIDE-10766.
---------------------------------
Verified in jbdevstudio-product-universal-5.0.0.v201203062109M-H100-Beta1.jar
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