Buggy code:
public class WebServiceRefAnnotationParsingProcessor extends AbstractComponentConfigProcessor { 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 ( ) ) ; protected void processComponentConfig ( final DeploymentUnit deploymentUnit , final DeploymentPhaseContext phaseContext , final CompositeIndex index , final AbstractComponentDescription description ) throws DeploymentUnitProcessingException { } private List < BindingDescription > getWebServiceConfigurations ( final DeploymentUnit deploymentUnit , final ClassInfo classInfo , final AbstractComponentDescription componentDescription ) { } private BindingDescription getWebServiceConfiguration ( final AnnotationInstance annotation , final UnifiedVirtualFile vfs , final Module module , final CompositeIndex index , final AbstractComponentDescription componentDescription ) { } private BindingDescription processField ( final AnnotationInstance annotation , final FieldInfo fieldInfo , final UnifiedVirtualFile vfs , final Module duModule , final CompositeIndex index , final AbstractComponentDescription componentDescription ) { } private BindingDescription processMethod ( final AnnotationInstance annotation , final MethodInfo methodInfo , final UnifiedVirtualFile vfs , final Module duModule , final CompositeIndex index , final AbstractComponentDescription componentDescription ) { } private BindingDescription processClass ( final AnnotationInstance annotation , final ClassInfo classInfo , final UnifiedVirtualFile vfs , final Module duModule , final CompositeIndex index ) { } private < E extends AnnotationTarget > BindingDescription processWebServiceRef ( final AbstractWebServiceRefAnnotation < E > processor , final AnnotationInstance annotation , final E annotated , final UnifiedVirtualFile vfs , final Module duModule , final String name , final String className , final AbstractComponentDescription componentDescription ) { UnifiedServiceRefMetaData ref = processor . process ( annotation , annotated , vfs ) ; ClassLoader contextClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; final Referenceable referenceable ; try { Thread . currentThread ( ) . setContextClassLoader ( this . getClass ( ) . getClassLoader ( ) ) ; final SPIProvider spiProvider = SPIProviderResolver . getInstance ( ) . getProvider ( ) ; final ServiceRefHandler serviceRefHandler = spiProvider . getSPI ( ServiceRefHandlerFactory . class ) . getServiceRefHandler ( ) ; referenceable = serviceRefHandler . createReferenceable ( ref ) ; } finally { Thread . currentThread ( ) . setContextClassLoader ( contextClassLoader ) ; } BindingDescription bindingDescription = new BindingDescription ( processor . getName ( annotated ) , componentDescription ) ; bindingDescription . setDependency ( true ) ; bindingDescription . setBindingType ( ref . getServiceRefType ( ) ) ; bindingDescription . setReferenceSourceDescription ( new WebServiceRefAnnotationParsingProcessor . WebServiceRefSourceDescription ( referenceable , duModule ) ) ; final InjectionTargetDescription targetDescription = new InjectionTargetDescription ( ) ; targetDescription . setName ( name ) ; targetDescription . setClassName ( className ) ; targetDescription . setType ( processor . getInjectionType ( ) ) ; <START_BUG> targetDescription . setValueClassName ( ref . getServiceRefType ( ) ) ; <END_BUG> bindingDescription . getInjectionTargetDescriptions ( ) . add ( targetDescription ) ; return bindingDescription ; } private List < BindingDescription > processClass ( final Map < DotName , List < AnnotationInstance > > classAnnotations , final UnifiedVirtualFile vfs , final Module duModule , final CompositeIndex index ) { } private static UnifiedVirtualFile getUnifiedVirtualFile ( final DeploymentUnit deploymentUnit ) { } public static class WebServiceRefSourceDescription extends BindingSourceDescription { private final Referenceable referenceable ; private final Module duModule ; private WebServiceRefSourceDescription ( Referenceable referenceable , Module duModule ) { } public Object getServiceRefValue ( ) { } public void getResourceValue ( BindingDescription referenceDescription , ServiceBuilder < ? > serviceBuilder , DeploymentPhaseContext phaseContext , Injector < ManagedReferenceFactory > injector ) { } } }

Fix:
targetDescription . setDeclaredValueClassName ( ref . getServiceRefType ( ) ) ;