[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4494) Seam Component is not removed from model even if we remove @Name

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Wed Jun 17 07:41:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12472484#action_12472484 ] 

Viacheslav Kabanovich commented on JBIDE-4494:
----------------------------------------------

It must be caused by an inexact 'if' statement committed for JBIDE-4485.

> Seam Component is not removed from model even if we remove @Name
> ----------------------------------------------------------------
>
>                 Key: JBIDE-4494
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4494
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 3.1.0.M1
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.1.0.M2
>
>
> 1. Create default EAR Seam project.
> 2. Create Test.java to ejb src folder:
> package org.domain.<projectName>.session;
> import javax.ejb.Stateless;
> import org.jboss.seam.annotations.Create;
> import org.jboss.seam.annotations.Logger;
> import org.jboss.seam.annotations.Name;
> import org.jboss.seam.log.Log;
> @Stateless @Name("statelessComponentWithDestroyMethod")
> public class Test {
> 	private String abc;
> 	
>     @Logger private Log log;
> 	
>     
>     //seam-gen method
>     public String statefulComponent()
>     {
>         //implement your business logic here
>         log.info("statefulComponent.statefulComponent() action called");
>         return "success";
>     }
> 	
>    //add additional action methods
>     @Create
> 	public void createMethod(){
> 		
> 	}
> 	public String getAbc() {
> 		return abc;
> 	}
> 	public void setAbc(String abc) {
> 		this.abc = abc;
> 	}
>     
> }
> 3. Open Seam Components view. There is statelessComponentWithDestroyMethod component with java declaration - Test.java
> 4. Remove @Stateless @Name("statelessComponentWithDestroyMethod") from Test.java. Ctrl+S.
> 5. See Seam Components view. There is still statelessComponentWithDestroyMethod component with java declaration - Test.java.
> We have SeamValidatorsTest.testComponentLifeCycleMethodsValidator() failed because of this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list