[jbosstools-issues] [JBoss JIRA] (JBIDE-9244) Seam Solder: default bean validation
Alexey Kazakov (Issue Comment Edited) (JIRA)
jira-events at lists.jboss.org
Thu Oct 27 14:20:45 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635944#comment-12635944 ]
Alexey Kazakov edited comment on JBIDE-9244 at 10/27/11 2:19 PM:
-----------------------------------------------------------------
I see two minor issues here:
1. If you have inconsistent bean type in @DefaultBean:
{code}
@DefaultBean(String.class)
@Produces
Object produceFunctionMapper() {
return null;
}
{code}
CDI Validator complaints:
*Producer method specifies a @Typed annotation, and the value member specifies a class which does not correspond to a type in the unrestricted set of bean types of a bean [JSR-299 §2.2.2]*
We should rephrase this error message since this error may occur not only on @Typed annotation.
2. If you create a default bean in one resource and then create another one with the same type and set of qualifiers in another resource then incremental validator doesn't re-validate the first bean.
was (Author: akazakov):
I see two minor issues here:
1. If you have inconsistent bean type in @DefaultBean:
{code}
@DefaultBean(String.class)
Object produceFunctionMapper() {
return null;
}
{code}
CDI Validator complaints:
*Producer method specifies a @Typed annotation, and the value member specifies a class which does not correspond to a type in the unrestricted set of bean types of a bean [JSR-299 §2.2.2]*
We should rephrase this error message since this error may occur not only on @Typed annotation.
2. If you create a default bean in one resource and then create another one with the same type and set of qualifiers in another resource then incremental validator doesn't re-validate the first bean.
> 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
> Labels: new_and_noteworthy
> Fix For: 3.3.0.Beta1
>
>
> 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