Buggy code:
public class ManagedBeanAnnotationProcessor implements DeploymentUnitProcessor { public static final long PRIORITY = POST_MODULE_DESCRIPTORS . plus ( 100L ) ; private static final DotName MANAGED_BEAN_ANNOTATION_NAME = DotName . createSimple ( ManagedBean . class . getName ( ) ) ; private static final DotName RESOURCE_ANNOTATION_NAME = DotName . createSimple ( Resource . class . getName ( ) ) ; private static final DotName INTERCEPTORS_ANNOTATION_NAME = DotName . createSimple ( Interceptors . class . getName ( ) ) ; public void processDeployment ( DeploymentUnitContext context ) throws DeploymentUnitProcessingException { } private void processLifecycleMethods ( final ManagedBeanConfiguration managedBeanConfiguration , final Class < ? > beanClass , final Index index ) throws DeploymentUnitProcessingException { } private List < InterceptorConfiguration > processInterceptors ( final Index index , final Map < DotName , List < AnnotationTarget > > beanClassAnnotations , final Class < ? > beanClass ) throws DeploymentUnitProcessingException { } private Method getSingleAnnotatedMethod ( final Class < ? > type , final ClassInfo classInfo , final Class < ? extends Annotation > annotationType , final boolean requireInvocationContext ) throws DeploymentUnitProcessingException { Method method = null ; if ( classInfo != null ) { final Map < DotName , List < AnnotationTarget > > classAnnotations = classInfo . annotations ( ) ; <START_BUG> final List < AnnotationTarget > targets = classAnnotations . get ( DotName . createSimple ( annotationType . toString ( ) ) ) ; <END_BUG> if ( ( targets == null ) || ( targets . isEmpty ( ) ) ) { return null ; } if ( ( targets . size ( ) ) > 1 ) { throw new DeploymentUnitProcessingException ( ( ( "Only<seq2seq4repair_space>one<seq2seq4repair_space>method<seq2seq4repair_space>may<seq2seq4repair_space>be<seq2seq4repair_space>annotated<seq2seq4repair_space>with<seq2seq4repair_space>" + annotationType ) + "<seq2seq4repair_space>per<seq2seq4repair_space>managed<seq2seq4repair_space>bean." ) ) ; } final AnnotationTarget target = targets . get ( 0 ) ; if ( ! ( target instanceof MethodInfo ) ) { throw new DeploymentUnitProcessingException ( ( annotationType + "<seq2seq4repair_space>is<seq2seq4repair_space>only<seq2seq4repair_space>valid<seq2seq4repair_space>on<seq2seq4repair_space>method<seq2seq4repair_space>targets." ) ) ; } final MethodInfo methodInfo = MethodInfo . class . cast ( target ) ; final Type [ ] args = methodInfo . args ( ) ; try { switch ( args . length ) { case 0 : if ( requireInvocationContext ) { throw new DeploymentUnitProcessingException ( ( ( "Missing<seq2seq4repair_space>argument.<seq2seq4repair_space>Methods<seq2seq4repair_space>annotated<seq2seq4repair_space>with<seq2seq4repair_space>" + annotationType ) + "<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>either<seq2seq4repair_space>single<seq2seq4repair_space>InvocationContext<seq2seq4repair_space>argument." ) ) ; } method = type . getDeclaredMethod ( methodInfo . name ( ) ) ; break ; case 1 : if ( ! ( InvocationContext . class . getName ( ) . equals ( args [ 0 ] . name ( ) . toString ( ) ) ) ) { throw new DeploymentUnitProcessingException ( ( ( "Invalid<seq2seq4repair_space>argument<seq2seq4repair_space>type.<seq2seq4repair_space>Methods<seq2seq4repair_space>annotated<seq2seq4repair_space>with<seq2seq4repair_space>" + annotationType ) + "<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>either<seq2seq4repair_space>single<seq2seq4repair_space>InvocationContext<seq2seq4repair_space>argument." ) ) ; } method = type . getDeclaredMethod ( methodInfo . name ( ) , InvocationContext . class ) ; break ; default : throw new DeploymentUnitProcessingException ( ( ( ( ( ( "Invalid<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>arguments<seq2seq4repair_space>for<seq2seq4repair_space>method<seq2seq4repair_space>" + ( methodInfo . name ( ) ) ) + "<seq2seq4repair_space>annotated<seq2seq4repair_space>with<seq2seq4repair_space>" ) + annotationType ) + "<seq2seq4repair_space>on<seq2seq4repair_space>class<seq2seq4repair_space>" ) + ( type . getName ( ) ) ) ) ; } } catch ( NoSuchMethodException e ) { throw new DeploymentUnitProcessingException ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>" + annotationType ) + "<seq2seq4repair_space>method<seq2seq4repair_space>for<seq2seq4repair_space>type:<seq2seq4repair_space>" ) + ( type . getName ( ) ) ) , e ) ; } } else { for ( Method typeMethod : type . getDeclaredMethods ( ) ) { if ( method . isAnnotationPresent ( annotationType ) ) { method = typeMethod ; switch ( method . getParameterTypes ( ) . length ) { case 0 : if ( requireInvocationContext ) { throw new DeploymentUnitProcessingException ( ( ( ( ( "Method<seq2seq4repair_space>" + ( method . getName ( ) ) ) + "<seq2seq4repair_space>annotated<seq2seq4repair_space>with<seq2seq4repair_space>" ) + annotationType ) + "<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>single<seq2seq4repair_space>InvocationContext<seq2seq4repair_space>parameter" ) ) ; } break ; case 1 : if ( ! ( InvocationContext . class . equals ( method . getParameterTypes ( ) [ 0 ] ) ) ) { throw new DeploymentUnitProcessingException ( ( ( ( ( "Method<seq2seq4repair_space>" + ( method . getName ( ) ) ) + "<seq2seq4repair_space>annotated<seq2seq4repair_space>with<seq2seq4repair_space>" ) + annotationType ) + "<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>single<seq2seq4repair_space>InvocationContext<seq2seq4repair_space>parameter." ) ) ; } default : throw new DeploymentUnitProcessingException ( ( ( ( ( "Methods<seq2seq4repair_space>" + ( method . getName ( ) ) ) + "<seq2seq4repair_space>annotated<seq2seq4repair_space>with<seq2seq4repair_space>" ) + annotationType ) + "<seq2seq4repair_space>can<seq2seq4repair_space>only<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>single<seq2seq4repair_space>InvocationContext<seq2seq4repair_space>parameter." ) ) ; } break ; } } } if ( method != null ) { method . setAccessible ( true ) ; } return method ; } private List < ResourceConfiguration > processResources ( final Map < DotName , List < AnnotationTarget > > classAnnotations , final Class < ? > owningClass ) throws DeploymentUnitProcessingException { } private ResourceConfiguration processFieldResource ( final FieldInfo fieldInfo , final Class < ? > owningClass ) throws DeploymentUnitProcessingException { } private ResourceConfiguration processMethodResource ( final MethodInfo methodInfo , final Class < ? > owningClass ) throws DeploymentUnitProcessingException { } private ResourceConfiguration processClassResource ( final Class < ? > owningClass , final Resource resource ) throws DeploymentUnitProcessingException { } private List < ResourceConfiguration > processClassResources ( final Class < ? > owningClass ) throws DeploymentUnitProcessingException { } private String getTargetContextName ( final Resource resource , final String contextNameSuffix , final Class < ? > injectionType ) throws DeploymentUnitProcessingException { } private boolean isEnvironmentEntryType ( Class < ? > type ) { } }

Fix:
final List < AnnotationTarget > targets = classAnnotations . get ( DotName . createSimple ( annotationType . getName ( ) ) ) ;