Buggy code:
public class WebServiceRefAnnotationParsingProcessor implements DeploymentUnitProcessor { private static final DotName WEB_SERVICE_REF_ANNOTATION_NAME = DotName . createSimple ( WebServiceRef . class . getName ( ) ) ; private static final DotName WEB_SERVICE_REFS_ANNOTATION_NAME = DotName . createSimple ( WebServiceRefs . class . getName ( ) ) ; public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { } public void undeploy ( DeploymentUnit context ) { } private void processFieldRef ( final DeploymentUnit deploymentUnit , final Module module , final EEModuleDescription eeModuleDescription , final WebServiceRefAnnotationParsingProcessor . WebServiceRefWrapper annotation , final FieldInfo fieldInfo ) { final String fieldName = fieldInfo . name ( ) ; final String injectionType = ( ( isEmpty ( annotation . type ( ) ) ) || ( annotation . type ( ) . equals ( Object . class . getName ( ) ) ) ) ? fieldInfo . type ( ) . name ( ) . toString ( ) : annotation . type ( ) ; <START_BUG> final InjectionTarget targetDescription = new org . jboss . as . ee . component . FieldInjectionTarget ( fieldName , fieldInfo . declaringClass ( ) . name ( ) . toString ( ) , injectionType ) ; <END_BUG> final String localContextName = ( isEmpty ( annotation . name ( ) ) ) ? ( ( fieldInfo . declaringClass ( ) . name ( ) . toString ( ) ) + "//" ) + ( fieldInfo . name ( ) ) : annotation . name ( ) ; processRef ( deploymentUnit , module , eeModuleDescription , annotation . name ( ) , targetDescription . getClassName ( ) , annotation . value ( ) , annotation . wsdlLocation ( ) , fieldInfo . declaringClass ( ) , targetDescription , localContextName ) ; } private void processMethodRef ( final DeploymentUnit deploymentUnit , final Module module , final EEModuleDescription eeModuleDescription , final WebServiceRefAnnotationParsingProcessor . WebServiceRefWrapper annotation , final MethodInfo methodInfo ) { } private void processClassRef ( final DeploymentUnit deploymentUnit , final Module module , final EEModuleDescription eeModuleDescription , final WebServiceRefAnnotationParsingProcessor . WebServiceRefWrapper annotation , final ClassInfo classInfo ) throws DeploymentUnitProcessingException { } private void processRef ( final DeploymentUnit deploymentUnit , final Module module , final EEModuleDescription eeModuleDescription , final String name , final String type , final String value , final String wsdlLocation , final ClassInfo classInfo , final InjectionTarget targetDescription , final String localContextName ) { } private UnifiedServiceRefMetaData getServiceReference ( final DeploymentUnit deploymentUnit , final String name , final String type , final String value , final String wsdlLocation ) { } private UnifiedVirtualFile getUnifiedVirtualFile ( final DeploymentUnit deploymentUnit ) { } private static class WebServiceRefValueSource extends InjectionSource implements Value < Object > { private final Module module ; private final UnifiedServiceRefMetaData serviceRef ; private WebServiceRefValueSource ( Module module , UnifiedServiceRefMetaData serviceRef ) { } public void getResourceValue ( final ResolutionContext resolutionContext , ServiceBuilder < ? > serviceBuilder , DeploymentPhaseContext phaseContext , Injector < ManagedReferenceFactory > injector ) throws DeploymentUnitProcessingException { } public Object getValue ( ) throws IllegalArgumentException , IllegalStateException { } private Referenceable getReferenceable ( ) { } } private class WebServiceRefWrapper { private final String type ; private final String name ; private final String value ; private final String wsdlLocation ; private WebServiceRefWrapper ( final AnnotationInstance annotation ) { } private String name ( ) { } private String type ( ) { } private String value ( ) { } private String wsdlLocation ( ) { } private String stringValueOrNull ( final AnnotationInstance annotation , final String attribute ) { } private String classValueOrNull ( final AnnotationInstance annotation , final String attribute ) { } } private boolean isEmpty ( final String string ) { } }

Fix:
final InjectionTarget targetDescription = new org . jboss . as . ee . component . FieldInjectionTarget ( fieldInfo . declaringClass ( ) . name ( ) . toString ( ) , fieldName , injectionType ) ;