[jbosstools-issues] [JBoss JIRA] (JBIDE-9244) Seam Solder: default bean validation

Viacheslav Kabanovich (Commented) (JIRA) jira-events at lists.jboss.org
Tue Oct 18 20:55:45 EDT 2011


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

Viacheslav Kabanovich commented on JBIDE-9244:
----------------------------------------------

Steps to verify:

EXECUTE: Create class bean with normal scope and a producer field in it:
{code}
@SessionScoped
public class DefaultFieldProducerBroken implements Serializable {
	private static final long serialVersionUID = 1L;

	@Produces
	@DefaultBean(String.class)
	@Named("defaultbean172817")
	String s;

}
{code}
ASSERT: Error marker appears at @DefaultBean: "Default producer fields are not allowed on normal scoped beans."

EXECUTE: Create class bean
{code}
@DefaultBean(IdenticalDefaultBeans.class)
@Named("abc")
public class IdenticalDefaultBeans {
	
	@Produces
	@DefaultBean(IdenticalDefaultBeans.class)
	@Named("abc")
	IdenticalDefaultBeans bean;
	
	@Produces
	@DefaultBean(IdenticalDefaultBeans.class)
	@Named("abc")
	IdenticalDefaultBeans createBean() {
		return null;
	}

}
{code}
ASSERT: Error marker appears at all @DefaultBean: "Other default beans have the same type and qualifiers: %identical beans enumerated%"
                
> Seam Solder: default bean validation
> ------------------------------------
>
>                 Key: JBIDE-9244
>                 URL: https://issues.jboss.org/browse/JBIDE-9244
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: CDI extensions
>    Affects Versions: 3.3.0.M2
>            Reporter: Viacheslav Kabanovich
>            Assignee: Alexey Kazakov
>             Fix For: 3.3.0.M4
>
>
> 1. Default producer fields are not supported on normal scoped beans. - it is a deployment error.
> 2. Two default beans with the same type and qualifiers is a deployment error.

--
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