Buggy code:
public ServiceBuilder < T > addDependency ( final ServiceName dependency , final Injector < Object > target ) { } public ServiceBuilder < T > addDependency ( final DependencyType dependencyType , final ServiceName dependency , final Injector < Object > target ) { } public < I > ServiceBuilder < T > addDependency ( final ServiceName dependency , final Class < I > type , final Injector < I > target ) { } public < I > ServiceBuilder < T > addDependency ( final DependencyType dependencyType , final ServiceName dependency , final Class < I > type , final Injector < I > target ) { } public < I > ServiceBuilder < T > addInjection ( final Injector < ? super I > target , final I value ) { } public < I > ServiceBuilder < T > addInjectionValue ( final Injector < ? super I > target , final Value < I > value ) { } public ServiceBuilder < T > addInjection ( final Injector < ? super T > target ) { } public ServiceBuilder < T > addListener ( final ServiceListener < ? super T > listener ) { } public ServiceBuilder < T > addListener ( final ServiceListener < ? super T > ... listeners ) { } public ServiceBuilder < T > addListener ( final Collection < ? extends ServiceListener < ? super T > > listeners ) { } public ServiceBuilder < T > addListener ( final ServiceListener . Inheritance inheritance , final ServiceListener < ? super T > listener ) { } public ServiceBuilder < T > addListener ( final ServiceListener . Inheritance inheritance , final ServiceListener < ? super T > ... listeners ) { } public ServiceBuilder < T > addListener ( final ServiceListener . Inheritance inheritance , final Collection < ? extends ServiceListener < ? super T > > listeners ) { } public ServiceController < T > install ( ) throws IllegalStateException , ServiceRegistryException { } } private class ServiceRemovalVerificationHandler implements OperationStepHandler { private final ContainerStateChangeReport containerStateChangeReport ; private ServiceRemovalVerificationHandler ( ContainerStateMonitor . ContainerStateChangeReport containerStateChangeReport ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { final Map < Step , Map < ServiceName , Set < ServiceName > > > missingByStep = new HashMap < Step , Map < ServiceName , Set < ServiceName > > > ( ) ; Object mutex = realRemovingControllers ; synchronized ( mutex ) { for ( Map . Entry < ServiceName , ContainerStateMonitor . MissingDependencyInfo > entry : containerStateChangeReport . getMissingServices ( ) . entrySet ( ) ) { ContainerStateMonitor . MissingDependencyInfo missingDependencyInfo = entry . getValue ( ) ; Step removalStep = removalSteps . get ( entry . getKey ( ) ) ; if ( removalStep != null ) { Map < ServiceName , Set < ServiceName > > stepBadRemovals = missingByStep . get ( removalStep ) ; if ( stepBadRemovals == null ) { stepBadRemovals = new HashMap < ServiceName , Set < ServiceName > > ( ) ; missingByStep . put ( removalStep , stepBadRemovals ) ; } stepBadRemovals . put ( entry . getKey ( ) , missingDependencyInfo . getDependents ( ) ) ; } } } for ( Map . Entry < Step , Map < ServiceName , Set < ServiceName > > > entry : missingByStep . entrySet ( ) ) { Step step = entry . getKey ( ) ; if ( ! ( step . response . hasDefined ( FAILURE_DESCRIPTION ) ) ) { StringBuilder sb = new StringBuilder ( ControllerMessages . MESSAGES . removingServiceUnsatisfiedDependencies ( ) ) ; for ( Map . Entry < ServiceName , Set < ServiceName > > removed : entry . getValue ( ) . entrySet ( ) ) { sb . append ( ControllerMessages . MESSAGES . removingServiceUnsatisfiedDependencies ( removed . getKey ( ) . getCanonicalName ( ) ) ) ; boolean first = true ; for ( ServiceName dependent : removed . getValue ( ) ) { if ( ! first ) { sb . append ( ",<seq2seq4repair_space>" ) ; } else { first = false ; } sb . append ( dependent ) ; } } step . response . get ( FAILURE_DESCRIPTION ) . set ( sb . toString ( ) ) ; } } if ( ( ! ( missingByStep . isEmpty ( ) ) ) && ( context . isRollbackOnRuntimeFailure ( ) ) ) { context . setRollbackOnly ( ) ; } <START_BUG> context . completeStep ( ) ; <END_BUG> } } private class OperationContextServiceRegistry implements ServiceRegistry { private final ServiceRegistry registry ; public OperationContextServiceRegistry ( ServiceRegistry registry ) { } @ Override @ SuppressWarnings ( "unchecked" ) public ServiceController < ? > getRequiredService ( ServiceName serviceName ) throws ServiceNotFoundException { } @ Override @ SuppressWarnings ( "unchecked" ) public ServiceController < ? > getService ( ServiceName serviceName ) { } @ Override public List < ServiceName > getServiceNames ( ) { } } private class OperationContextServiceController < S > implements ServiceController < S > { private final ServiceController < S > controller ; public OperationContextServiceController ( ServiceController < S > controller ) { } public ServiceController < ? > getParent ( ) { } public ServiceContainer getServiceContainer ( ) { } public Mode getMode ( ) { } public boolean compareAndSetMode ( Mode expected , ServiceController . Mode newMode ) { } public void setMode ( Mode mode ) { } private void checkModeTransition ( Mode mode ) { } public State getState ( ) { } public Substate getSubstate ( ) { } public S getValue ( ) throws IllegalStateException { } public Service < S > getService ( ) throws IllegalStateException { } public ServiceName getName ( ) { } public ServiceName [ ] getAliases ( ) { } public void addListener ( ServiceListener < ? super S > serviceListener ) { }

Fix:
context . completeStep ( NOOP_ROLLBACK_HANDLER ) ;