Buggy code:
public class EjbResourceInjectionAnnotationProcessor implements DeploymentUnitProcessor { private static final DotName EJB_ANNOTATION_NAME = DotName . createSimple ( EJB . class . getName ( ) ) ; private static final DotName EJBS_ANNOTATION_NAME = DotName . createSimple ( EJBs . class . getName ( ) ) ; private static final Logger logger = Logger . getLogger ( EjbResourceInjectionAnnotationProcessor . class ) ; public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { } public void undeploy ( DeploymentUnit context ) { } private void processField ( final DeploymentUnit deploymentUnit , final EjbResourceInjectionAnnotationProcessor . EJBResourceWrapper annotation , final FieldInfo fieldInfo , final EEModuleDescription eeModuleDescription ) { } private void processMethod ( final DeploymentUnit deploymentUnit , final EjbResourceInjectionAnnotationProcessor . EJBResourceWrapper annotation , final MethodInfo methodInfo , final EEModuleDescription eeModuleDescription ) { } private void processClass ( final DeploymentUnit deploymentUnit , final EjbResourceInjectionAnnotationProcessor . EJBResourceWrapper annotation , final ClassInfo classInfo , final EEModuleDescription eeModuleDescription ) throws DeploymentUnitProcessingException { } private void process ( final DeploymentUnit deploymentUnit , final String beanInterface , final String beanName , final String lookup , final ClassInfo classInfo , final InjectionTarget targetDescription , final String localContextName , final EEModuleDescription eeModuleDescription ) { if ( ( ! ( isEmpty ( lookup ) ) ) && ( ! ( isEmpty ( beanName ) ) ) ) { EjbResourceInjectionAnnotationProcessor . logger . debug ( ( ( ( ( ( ( "Both<seq2seq4repair_space>beanName<seq2seq4repair_space>=<seq2seq4repair_space>" + beanName ) + "<seq2seq4repair_space>and<seq2seq4repair_space>lookup<seq2seq4repair_space>=<seq2seq4repair_space>" ) + lookup ) + "<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>specified<seq2seq4repair_space>in<seq2seq4repair_space>@EJB<seq2seq4repair_space>annotation." ) + "<seq2seq4repair_space>lookup<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>given<seq2seq4repair_space>preference.<seq2seq4repair_space>Class:<seq2seq4repair_space>" ) + ( classInfo . name ( ) ) ) ) ; } final EEModuleClassDescription classDescription = eeModuleDescription . addOrGetLocalClassDescription ( classInfo . name ( ) . toString ( ) ) ; final InjectionSource valueSource ; EjbInjectionSource ejbInjectionSource = null ; if ( ! ( isEmpty ( lookup ) ) ) { if ( lookup . startsWith ( "ejb:" ) ) { valueSource = new EjbLookupInjectionSource ( lookup ) ; } else { valueSource = new LookupInjectionSource ( lookup ) ; } } else if ( ! ( isEmpty ( beanName ) ) ) { valueSource = ejbInjectionSource = new EjbInjectionSource ( beanName , beanInterface ) ; } else { valueSource = ejbInjectionSource = new EjbInjectionSource ( beanInterface ) ; } if ( ejbInjectionSource != null ) { deploymentUnit . addToAttachmentList ( EJB_INJECTIONS , ejbInjectionSource ) ; } final ResourceInjectionConfiguration injectionConfiguration = ( targetDescription != null ) ? new ResourceInjectionConfiguration ( targetDescription , new LookupInjectionSource ( localContextName ) ) : null ; 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 class EJBResourceWrapper { private final String name ; private final String beanInterface ; private final String beanName ; private final String lookup ; private final String description ; private EJBResourceWrapper ( final AnnotationInstance annotation ) { } private String name ( ) { } private String beanInterface ( ) { } private String beanName ( ) { } private String lookup ( ) { } private String description ( ) { } private String stringValueOrNull ( final AnnotationInstance annotation , final String attribute ) { } private String classValueOrNull ( final AnnotationInstance annotation , final String attribute ) { } } }

Fix:
classDescription . addResourceInjection ( injectionConfiguration ) ;