[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-9342) @Inject Instance<BeanType> should be validate
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Wed Jul 13 20:53:23 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov resolved JBIDE-9342.
-----------------------------------
Resolution: Rejected
It seems that Instance<...> means there can be *0* to N matches thus shouldn't be marked as a validation error at all.
> @Inject Instance<BeanType> should be validate
> ---------------------------------------------
>
> Key: JBIDE-9342
> URL: https://issues.jboss.org/browse/JBIDE-9342
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdi (jsr-299)
> Affects Versions: 3.3.0.M2
> Reporter: Alexey Kazakov
> Assignee: Alexey Kazakov
> Fix For: 3.3.0.M3
>
>
> Suppose we have the following injection:
> {code}
> @Inject @Sync Instance<PaymentProcessor> paymentProcessor;
> {code}
> and if there is no bean with qualifier @Sync and type PaymentProcessor available then CDI validator should mark such a injection as unsatisfied.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list