[weld-issues] [JBoss JIRA] (WELD-1017) Validator: The exception "WELD-001410 The injection point ... has non-proxyable dependencies" must chain the inner exception that clearly explains why it is not proxyable.
Ales Justin (Assigned) (JIRA)
jira-events at lists.jboss.org
Mon Nov 21 15:32:40 EST 2011
[ https://issues.jboss.org/browse/WELD-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ales Justin reassigned WELD-1017:
---------------------------------
Assignee: Ales Justin
> Validator: The exception "WELD-001410 The injection point ... has non-proxyable dependencies" must chain the inner exception that clearly explains why it is not proxyable.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WELD-1017
> URL: https://issues.jboss.org/browse/WELD-1017
> Project: Weld
> Issue Type: Enhancement
> Components: Proxies
> Affects Versions: 1.1.3.Final
> Reporter: Geoffrey De Smet
> Assignee: Ales Justin
> Fix For: 1.1.4.Final
>
>
> In Validator it does:
> {code}
> if (beanManager.getServices().get(MetaAnnotationStore.class).getScopeModel(resolvedBean.getScope()).isNormal() && !Proxies.isTypeProxyable(ij.getType())) {
> throw new UnproxyableResolutionException(INJECTION_POINT_HAS_NON_PROXYABLE_DEPENDENCIES, ij);
> }
> {code}
> which calls on Proxies:
> {code}
> public static boolean isTypeProxyable(Type type) {
> return getUnproxyableTypeException(type) == null;
> }
> {code}
> so the exception created by getUnproxyableTypeException() is eaten.
> And that's exactly the exception that clearly explains why it's not proxyable, so that should be chained.
--
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 weld-issues
mailing list