[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:48:45 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635591#comment-12635591 ]
Viacheslav Kabanovich commented on JBIDE-9244:
----------------------------------------------
By the way, these rules may not be mentioned in docs, I took them from implementation:
{code}
if (beanManager.isNormalScope(i.annotationType())) {
deploymentProblems.add(new RuntimeException("Default producer fields are not supported on normal scoped beans. Field: " + f + " Declaring Bean: " + tp));
}
{code}
{code}
if (duplicateDetectionMap.containsKey(e.getValue())) {
Bean<?> other = duplicateDetectionMap.get(e.getValue());
deploymentProblems.add(new RuntimeException("Two default beans with the same type and qualifiers: Type: " + e.getValue().getType() + " Qualifiers: " + e.getValue().getQualifiers() + " Beans are " + other.toString() + " and " + bean.toString()));
}
{code}
> 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