Uploaded image for project: 'Weld'
  1. Weld
  2. 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.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.1.4.Final
    • 1.1.3.Final
    • Proxies
    • None

      In Validator it does:

                  if (beanManager.getServices().get(MetaAnnotationStore.class).getScopeModel(resolvedBean.getScope()).isNormal() && !Proxies.isTypeProxyable(ij.getType())) {
                      throw new UnproxyableResolutionException(INJECTION_POINT_HAS_NON_PROXYABLE_DEPENDENCIES, ij);
                  }
      

      which calls on Proxies:

          public static boolean isTypeProxyable(Type type) {
              return getUnproxyableTypeException(type) == null;
          }
      

      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.

              ajustin@redhat.com Ales Justin
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: