[
https://issues.jboss.org/browse/JBIDE-10766?page=com.atlassian.jira.plugi...
]
Alexey Kazakov updated JBIDE-10766:
-----------------------------------
Fix Version/s: 3.3.0.Beta1
Description:
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}
was:
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}
Assignee: Daniel Azarov
Affects Version/s: 3.3.0.Beta1
Component/s: Seam 2
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