Program: 72525
Project: 72525
Buggy source:
/** 
 * Callback delivered by the RTI (CERTI) to discover attribute instance of HLA attribute that the Federate is subscribed to.
 */
@Override public void discoverObjectInstance(int objectHandle,int classHandle,String objectName) throws CouldNotDiscover, ObjectClassNotKnown, FederateInternalError {
  if (_debugging) {
    _debug(HlaManager.this.getDisplayName() + "String_Node_Str" + "String_Node_Str"+ objectName+ "String_Node_Str"+ "String_Node_Str"+ objectHandle+ "String_Node_Str"+ classHandle+ "String_Node_Str");
  }
  _objectIdToClassHandle.put(objectHandle,classHandle);
  final CompositeActor classToInstantiate=(CompositeActor)_idToClasses.get(classHandle);
  ChangeRequest request=new ChangeRequest(this,"String_Node_Str" + objectName,true){
    @Override protected void _execute() throws IllegalActionException {
      CompositeActor container=(CompositeActor)classToInstantiate.getContainer();
      try {
        Instantiable instance;
        LinkedList<ComponentEntity> actors=_freeActors.get(classHandle);
        if (actors.size() == 0) {
          instance=classToInstantiate.instantiate(container,objectName);
          container.notifyConnectivityChange();
          _newlyCreated.add(instance);
        }
 else {
          instance=actors.poll();
          if (_debugging) {
            _debug(instance.getName() + "String_Node_Str" + objectHandle);
          }
        }
        CompositeActor newActor=(CompositeActor)instance;
        List<HlaSubscriber> subscribers=newActor.entityList(HlaSubscriber.class);
        for (int i=0; i < subscribers.size(); ++i) {
          HlaSubscriber sub=subscribers.get(i);
          sub.objectName.setExpression("String_Node_Str" + objectName + "String_Node_Str");
          ;
          sub.objectHandle=objectHandle;
          _hlaAttributesSubscribedTo.put(sub.getIdentity(),new Object[]{sub.output,sub.output.getType(),"String_Node_Str",classHandle,sub.attributeHandle});
          _fromFederationEvents.put(sub.getIdentity(),new LinkedList<TimedEvent>());
        }
      }
 catch (      NameDuplicationException|CloneNotSupportedException ex) {
        ex.printStackTrace();
      }
    }
  }
;
  request.setPersistent(false);
  if (classToInstantiate != null) {
    requestChange(request);
  }
}

Fixed version (ground truth):
/** 
 * Callback delivered by the RTI (CERTI) to discover attribute instance of HLA attribute that the Federate is subscribed to.
 */
@Override public void discoverObjectInstance(int objectHandle,int classHandle,String objectName) throws CouldNotDiscover, ObjectClassNotKnown, FederateInternalError {
  if (_debugging) {
    _debug(HlaManager.this.getDisplayName() + "String_Node_Str" + "String_Node_Str"+ objectName+ "String_Node_Str"+ "String_Node_Str"+ objectHandle+ "String_Node_Str"+ classHandle+ "String_Node_Str");
  }
  _objectIdToClassHandle.put(objectHandle,classHandle);
  final CompositeActor classToInstantiate=(CompositeActor)_classIdToPtIIClasses.get(classHandle);
  ChangeRequest request=new ChangeRequest(this,"String_Node_Str" + objectName,true){
    @Override protected void _execute() throws IllegalActionException {
      CompositeActor container=(CompositeActor)classToInstantiate.getContainer();
      try {
        Instantiable instance;
        LinkedList<ComponentEntity> actors=_freeActors.get(classHandle);
        if (actors.size() == 0) {
          instance=classToInstantiate.instantiate(container,objectName);
          container.notifyConnectivityChange();
          _newlyCreated.add(instance);
        }
 else {
          instance=actors.poll();
          if (_debugging) {
            _debug(instance.getName() + "String_Node_Str" + objectHandle);
          }
        }
        CompositeActor newActor=(CompositeActor)instance;
        List<HlaSubscriber> subscribers=newActor.entityList(HlaSubscriber.class);
        for (int i=0; i < subscribers.size(); ++i) {
          HlaSubscriber sub=subscribers.get(i);
          sub.objectName.setExpression("String_Node_Str" + objectName + "String_Node_Str");
          ;
          sub.setObjectHandle(objectHandle);
          _hlaAttributesSubscribedTo.put(sub.getIdentity(),new Object[]{sub.output,sub.output.getType(),"String_Node_Str",classHandle,sub.getAttributeHandle()});
          _fromFederationEvents.put(sub.getIdentity(),new LinkedList<TimedEvent>());
        }
      }
 catch (      NameDuplicationException|CloneNotSupportedException ex) {
        ex.printStackTrace();
      }
    }
  }
;
  request.setPersistent(false);
  if (classToInstantiate != null) {
    requestChange(request);
  }
}