0 Replies Latest reply on Sep 6, 2011 2:49 AM by gvagenas

    Weld-Servlet injectEEFields should check if field is not null

    gvagenas

      Hi guys,


      Working on weld-servlet, i think that for fields with @Resource, weld should first check to see if the field is already injected by the first annotationProcessor and then proceed to resolveEEReource.


      That is at the method


      org.jboss.weld.util.Beans.injectEEFields(T, BeanManagerImpl, Iterable<WeldInjectionPoint<?, ?>>, Iterable<WeldInjectionPoint<?, ?>>, Iterable<WeldInjectionPoint<?, ?>>, Iterable<WeldInjectionPoint<?, ?>>)



      What do you think?


      Thanks
      George