Buggy code:
public class ResourceInjectionAnnotationParsingProcessor implements DeploymentUnitProcessor { private static final Logger logger = Logger . getLogger ( ResourceInjectionAnnotationParsingProcessor . class ) ; private static final DotName RESOURCE_ANNOTATION_NAME = DotName . createSimple ( Resource . class . getName ( ) ) ; private static final DotName RESOURCES_ANNOTATION_NAME = DotName . createSimple ( Resources . class . getName ( ) ) ; public static final Map < String , String > FIXED_LOCATIONS ; public static final Set < String > SIMPLE_ENTRIES ; public static final Set < String > RESOURCE_REF_ENTRIES ; public void deploy ( final DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { } public void undeploy ( final DeploymentUnit context ) { } protected void processFieldResource ( final DeploymentPhaseContext phaseContext , final FieldInfo fieldInfo , final String name , final String type , final EEModuleClassDescription classDescription , final AnnotationInstance annotation , final EEModuleDescription eeModuleDescription , final Module module , final EEApplicationClasses applicationClasses ) throws DeploymentUnitProcessingException { } protected void processMethodResource ( final DeploymentPhaseContext phaseContext , final MethodInfo methodInfo , final String name , final String type , final EEModuleClassDescription classDescription , final AnnotationInstance annotation , final EEModuleDescription eeModuleDescription , final Module module , final EEApplicationClasses applicationClasses ) throws DeploymentUnitProcessingException { } protected void processClassResource ( final DeploymentPhaseContext phaseContext , final String name , final String type , final EEModuleClassDescription classDescription , final AnnotationInstance annotation , final EEModuleDescription eeModuleDescription , final Module module , final EEApplicationClasses applicationClasses ) throws DeploymentUnitProcessingException { } protected void process ( final DeploymentPhaseContext phaseContext , final EEModuleClassDescription classDescription , final AnnotationInstance annotation , final String injectionType , final String localContextName , final InjectionTarget targetDescription , final EEModuleDescription eeModuleDescription , final Module module , final EEApplicationClasses applicationClasses ) throws DeploymentUnitProcessingException { final AnnotationValue lookupAnnotation = annotation . value ( "lookup" ) ; String lookup = ( lookupAnnotation == null ) ? null : lookupAnnotation . asString ( ) ; if ( isEmpty ( lookup ) ) { final AnnotationValue mappedNameAnnotationValue = annotation . value ( "mappedName" ) ; lookup = ( mappedNameAnnotationValue == null ) ? null : mappedNameAnnotationValue . asString ( ) ; } if ( ( isEmpty ( lookup ) ) && ( ResourceInjectionAnnotationParsingProcessor . FIXED_LOCATIONS . containsKey ( injectionType ) ) ) { lookup = ResourceInjectionAnnotationParsingProcessor . FIXED_LOCATIONS . get ( injectionType ) ; } InjectionSource valueSource = null ; final boolean isEnvEntryType = this . isEnvEntryType ( injectionType , module ) ; final boolean isResourceRefType = ResourceInjectionAnnotationParsingProcessor . RESOURCE_REF_ENTRIES . contains ( injectionType ) ; boolean createBinding = true ; if ( ! ( isEmpty ( lookup ) ) ) { valueSource = new LookupInjectionSource ( lookup ) ; } else if ( isEnvEntryType ) { } else if ( ! isResourceRefType ) { final EEResourceReferenceProcessor resourceReferenceProcessor = EEResourceReferenceProcessorRegistry . getResourceReferenceProcessor ( injectionType ) ; if ( resourceReferenceProcessor == null ) { ResourceInjectionAnnotationParsingProcessor . logger . warnf ( "Can\'t<seq2seq4repair_space>handle<seq2seq4repair_space>@Resource<seq2seq4repair_space>for<seq2seq4repair_space>ENC<seq2seq4repair_space>name:<seq2seq4repair_space>%s<seq2seq4repair_space>on<seq2seq4repair_space>class<seq2seq4repair_space>%s<seq2seq4repair_space>since<seq2seq4repair_space>it\'s<seq2seq4repair_space>missing<seq2seq4repair_space>a<seq2seq4repair_space>\"lookup\"<seq2seq4repair_space>(or<seq2seq4repair_space>\"mappedName\")<seq2seq4repair_space>value<seq2seq4repair_space>and<seq2seq4repair_space>isn\'t<seq2seq4repair_space>of<seq2seq4repair_space>any<seq2seq4repair_space>known<seq2seq4repair_space>type" , localContextName , classDescription . getClassName ( ) ) ; return ; } valueSource = resourceReferenceProcessor . getResourceReferenceBindingSource ( phaseContext , eeModuleDescription , classDescription , injectionType , localContextName , targetDescription ) ; if ( valueSource == null ) { ResourceInjectionAnnotationParsingProcessor . logger . warnf ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>binding<seq2seq4repair_space>source<seq2seq4repair_space>for<seq2seq4repair_space>@Resource,<seq2seq4repair_space>for<seq2seq4repair_space>ENC<seq2seq4repair_space>name:<seq2seq4repair_space>%s<seq2seq4repair_space>on<seq2seq4repair_space>class<seq2seq4repair_space>%s<seq2seq4repair_space>" + "<seq2seq4repair_space>of<seq2seq4repair_space>type:<seq2seq4repair_space>%s<seq2seq4repair_space>from<seq2seq4repair_space>resource<seq2seq4repair_space>reference<seq2seq4repair_space>processor:<seq2seq4repair_space>%s" ) , localContextName , classDescription . getClassName ( ) , injectionType , resourceReferenceProcessor ) ; return ; } } else { createBinding = false ; valueSource = new LookupInjectionSource ( localContextName ) ; } final boolean createBindingFinal = createBinding ; if ( valueSource == null ) { if ( targetDescription != null ) { LazyResourceInjection lazyResourceInjection = new LazyResourceInjection ( targetDescription , localContextName , classDescription ) ; applicationClasses . addLazyResourceInjection ( lazyResourceInjection ) ; } } else { final InjectionSource injectionSource = new LookupInjectionSource ( localContextName ) ; final ResourceInjectionConfiguration injectionConfiguration = ( targetDescription != null ) ? new ResourceInjectionConfiguration ( targetDescription , injectionSource ) : null ; if ( createBindingFinal ) { final BindingConfiguration bindingConfiguration = new BindingConfiguration ( localContextName , valueSource ) ; classDescription . getBindingConfigurations ( ) . add ( bindingConfiguration ) ; } if ( injectionConfiguration != null ) { <START_BUG> classDescription . getInjectionConfigurations ( ) . add ( injectionConfiguration ) ; <END_BUG> } } } private boolean isEmpty ( final String string ) { } private boolean isEnvEntryType ( final String type , final Module module ) { } }

Fix:
classDescription . addResourceInjection ( injectionConfiguration ) ;