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

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: