[weld-issues] [JBoss JIRA] Resolved: (WELDX-100) Using AnnotatedTypeBuilder for ProcessAnnotatedType<T> event.setAnnotatedType() causes injection to fail globally.

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Wed May 5 15:39:05 EDT 2010


     [ https://jira.jboss.org/jira/browse/WELDX-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lincoln Baxter III resolved WELDX-100.
--------------------------------------

    Resolution: Won't Fix


Needed to call: 


      builder.readAnnotationsFromUnderlyingType();


Not a bug.

> Using AnnotatedTypeBuilder for ProcessAnnotatedType<T> event.setAnnotatedType() causes injection to fail globally.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: WELDX-100
>                 URL: https://jira.jboss.org/jira/browse/WELDX-100
>             Project: Weld Extensions
>          Issue Type: Bug
>            Reporter: Lincoln Baxter III
>            Priority: Blocker
>
> http://www.seamframework.org/Community/HowDoIRegisterAProducerForSubtypesDynamically#comment127009
> Caused by: org.jboss.weld.DeploymentException: Injection point has unstatisfied dependencies. Injection point: field org.jboss.seam.faces.component.FormFieldProducer.log; Qualifiers: @javax.enterprise.inject.Default()
> public class FormFieldTypingExtension implements Extension
> {
>    public <T> void processAnnotatedType(@Observes final ProcessAnnotatedType<T> event)
>    {
>       AnnotatedTypeBuilder<T> builder = AnnotatedTypeBuilder.newInstance(event.getAnnotatedType());
>       for (AnnotatedField<?> f : event.getAnnotatedType().getFields())
>       {
>          if (f.isAnnotationPresent(InputField.class))
>          {
>             builder.overrideFieldType(f.getJavaMember(), Object.class);
>          }
>       }
>       event.setAnnotatedType(builder.create());
>    }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list