Buggy code:
final class ConcreteResourceRegistration extends AbstractResourceRegistration { @ SuppressWarnings ( "unused" ) private volatile Map < String , NodeSubregistry > children ; @ SuppressWarnings ( "unused" ) private volatile Map < String , OperationEntry > operations ; @ SuppressWarnings ( "unused" ) private volatile ResourceDefinition resourceDefinition ; @ SuppressWarnings ( "unused" ) private volatile Map < String , AttributeAccess > attributes ; private final AtomicBoolean runtimeOnly = new AtomicBoolean ( ) ; private static final AtomicMapFieldUpdater < ConcreteResourceRegistration , String , NodeSubregistry > childrenUpdater = AtomicMapFieldUpdater . newMapUpdater ( AtomicReferenceFieldUpdater . newUpdater ( ConcreteResourceRegistration . class , Map . class , "children" ) ) ; private static final AtomicMapFieldUpdater < ConcreteResourceRegistration , String , OperationEntry > operationsUpdater = AtomicMapFieldUpdater . newMapUpdater ( AtomicReferenceFieldUpdater . newUpdater ( ConcreteResourceRegistration . class , Map . class , "operations" ) ) ; private static final AtomicMapFieldUpdater < ConcreteResourceRegistration , String , AttributeAccess > attributesUpdater = AtomicMapFieldUpdater . newMapUpdater ( AtomicReferenceFieldUpdater . newUpdater ( ConcreteResourceRegistration . class , Map . class , "attributes" ) ) ; private static final AtomicReferenceFieldUpdater < ConcreteResourceRegistration , ResourceDefinition > descriptionProviderUpdater = AtomicReferenceFieldUpdater . newUpdater ( ConcreteResourceRegistration . class , ResourceDefinition . class , "resourceDefinition" ) ; ConcreteResourceRegistration ( final String valueString , final NodeSubregistry parent , final ResourceDefinition provider , final boolean runtimeOnly ) { } @ Override public boolean isRuntimeOnly ( ) { } @ Override public void setRuntimeOnly ( final boolean runtimeOnly ) { } @ Override public boolean isRemote ( ) { } @ Override public ManagementResourceRegistration registerSubModel ( final ResourceDefinition resourceDefinition ) { } @ Override public void registerOperationHandler ( OperationDefinition definition , OperationStepHandler handler , boolean inherited ) { <START_BUG> registerOperationHandler ( definition . getName ( ) , handler , definition . getDescriptionProvider ( ) , inherited , definition . getFlags ( ) ) ; <END_BUG> } public void unregisterSubModel ( final PathElement address ) throws IllegalArgumentException { } @ Override OperationEntry getOperationEntry ( final ListIterator < PathElement > iterator , final String operationName , OperationEntry inherited ) { } @ Override OperationEntry getInheritableOperationEntry ( final String operationName ) { } @ Override void getOperationDescriptions ( final ListIterator < PathElement > iterator , final Map < String , OperationEntry > providers , final boolean inherited ) { } @ Override void getInheritedOperationEntries ( final Map < String , OperationEntry > providers ) { } @ Override public void registerOperationHandler ( final String operationName , final OperationStepHandler handler , final DescriptionProvider descriptionProvider , final boolean inherited , EntryType entryType ) { } @ Override public void registerOperationHandler ( final String operationName , final OperationStepHandler handler , final DescriptionProvider descriptionProvider , final boolean inherited , EntryType entryType , EnumSet < OperationEntry . Flag > flags ) { } @ Override public void unregisterOperationHandler ( final String operationName ) { } @ Override public void registerReadWriteAttribute ( final String attributeName , final OperationStepHandler readHandler , final OperationStepHandler writeHandler , AttributeAccess . Storage storage ) { } @ Override public void registerReadWriteAttribute ( final String attributeName , final OperationStepHandler readHandler , final OperationStepHandler writeHandler , EnumSet < AttributeAccess . Flag > flags ) { } @ Override public void registerReadWriteAttribute ( final AttributeDefinition definition , final OperationStepHandler readHandler , final OperationStepHandler writeHandler ) { } @ Override public void registerReadOnlyAttribute ( final String attributeName , final OperationStepHandler readHandler , AttributeAccess . Storage storage ) { } @ Override public void registerReadOnlyAttribute ( final String attributeName , final OperationStepHandler readHandler , EnumSet < AttributeAccess . Flag > flags ) { } @ Override public void registerReadOnlyAttribute ( final AttributeDefinition definition , final OperationStepHandler readHandler ) { } @ Override public void registerMetric ( String attributeName , OperationStepHandler metricHandler ) { } @ Override public void registerMetric ( String attributeName , OperationStepHandler metricHandler , EnumSet < AttributeAccess . Flag > flags ) { } @ Override public void unregisterAttribute ( String attributeName ) { } @ Override public void registerMetric ( AttributeDefinition definition , OperationStepHandler metricHandler ) { } @ Override public void registerProxyController ( final PathElement address , final ProxyController controller ) throws IllegalArgumentException { } @ Override public void unregisterProxyController ( final PathElement address ) throws IllegalArgumentException { } @ Override public void registerAlias ( PathElement address , AliasEntry alias , AbstractResourceRegistration target ) { } @ Override public void unregisterAlias ( PathElement address ) { } NodeSubregistry getOrCreateSubregistry ( final String key ) { } @ Override DescriptionProvider getModelDescription ( final ListIterator < PathElement > iterator ) { } @ Override Set < String > getAttributeNames ( final ListIterator < PathElement > iterator ) { } @ Override AttributeAccess getAttributeAccess ( final ListIterator < PathElement > iterator , final String attributeName ) { } @ Override Set < String > getChildNames ( final ListIterator < PathElement > iterator ) { } @ Override Set < PathElement > getChildAddresses ( final ListIterator < PathElement > iterator ) { } @ Override ProxyController getProxyController ( ListIterator < PathElement > iterator ) { } @ Override void getProxyControllers ( ListIterator < PathElement > iterator , Set < ProxyController > controllers ) { } @ Override AbstractResourceRegistration getResourceRegistration ( ListIterator < PathElement > iterator ) { } private IllegalArgumentException alreadyRegistered ( final String type , final String name ) { } private IllegalArgumentException operationNotRegisteredException ( String op , PathElement address ) { } @ Override public AliasEntry getAliasEntry ( ) { } }

Fix:
registerOperationHandler ( definition . getName ( ) , handler , definition . getDescriptionProvider ( ) , inherited , definition . getEntryType ( ) , definition . getFlags ( ) ) ;