[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.
Geoffrey De Smet (Created) (JIRA)
jira-events at lists.jboss.org
Mon Nov 21 09:42:41 EST 2011
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
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