Program: 75708
Project: 75708
Buggy source:
/** 
 * Construct an actor with the given container and name.
 * @param container The container.
 * @param name The name of this actor.
 * @exception IllegalActionException If the actor cannot be containedby the proposed container.
 * @exception NameDuplicationException If the container already has anactor with this name.
 */
public DatagramReader(CompositeEntity container,String name) throws NameDuplicationException, IllegalActionException {
  super(container,name);
  returnAddress=new TypedIOPort(this,"String_Node_Str");
  returnAddress.setTypeEquals(BaseType.STRING);
  returnAddress.setOutput(true);
  returnSocketNumber=new TypedIOPort(this,"String_Node_Str");
  returnSocketNumber.setTypeEquals(BaseType.INT);
  returnSocketNumber.setOutput(true);
  output=new TypedIOPort(this,"String_Node_Str");
  output.setTypeEquals(BaseType.GENERAL);
  output.setOutput(true);
  trigger=new TypedIOPort(this,"String_Node_Str",true,false);
  trigger.setTypeEquals(BaseType.GENERAL);
  trigger.setMultiport(true);
  localSocketNumber=new Parameter(this,"String_Node_Str");
  localSocketNumber.setTypeEquals(BaseType.INT);
  localSocketNumber.setToken(new IntToken(4004));
  bufferLength=new Parameter(this,"String_Node_Str");
  bufferLength.setTypeEquals(BaseType.INT);
  bufferLength.setToken(new IntToken(440));
  overwrite=new Parameter(this,"String_Node_Str",new BooleanToken(true));
  overwrite.setTypeEquals(BaseType.BOOLEAN);
  blockAwaitingDatagram=new Parameter(this,"String_Node_Str");
  blockAwaitingDatagram.setTypeEquals(BaseType.BOOLEAN);
  blockAwaitingDatagram.setExpression("String_Node_Str");
  defaultOutput=new Parameter(this,"String_Node_Str");
  defaultOutput.setTypeEquals(BaseType.GENERAL);
  defaultOutput.setExpression("String_Node_Str");
  encoding=new StringAttribute(this,"String_Node_Str");
  encoding.setExpression("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Construct an actor with the given container and name.
 * @param container The container.
 * @param name The name of this actor.
 * @exception IllegalActionException If the actor cannot be containedby the proposed container.
 * @exception NameDuplicationException If the container already has anactor with this name.
 */
public DatagramReader(CompositeEntity container,String name) throws NameDuplicationException, IllegalActionException {
  super(container,name);
  returnAddress=new TypedIOPort(this,"String_Node_Str");
  returnAddress.setTypeEquals(BaseType.STRING);
  returnAddress.setOutput(true);
  returnSocketNumber=new TypedIOPort(this,"String_Node_Str");
  returnSocketNumber.setTypeEquals(BaseType.INT);
  returnSocketNumber.setOutput(true);
  output=new TypedIOPort(this,"String_Node_Str");
  output.setTypeEquals(BaseType.GENERAL);
  output.setOutput(true);
  trigger=new TypedIOPort(this,"String_Node_Str",true,false);
  trigger.setTypeEquals(BaseType.GENERAL);
  trigger.setMultiport(true);
  localSocketNumber=new Parameter(this,"String_Node_Str");
  localSocketNumber.setTypeEquals(BaseType.INT);
  localSocketNumber.setToken(new IntToken(4004));
  actorBufferLength=new Parameter(this,"String_Node_Str");
  actorBufferLength.setTypeEquals(BaseType.INT);
  actorBufferLength.setToken(new IntToken(440));
  platformBufferLength=new Parameter(this,"String_Node_Str");
  platformBufferLength.setTypeEquals(BaseType.INT);
  overwrite=new Parameter(this,"String_Node_Str",new BooleanToken(true));
  overwrite.setTypeEquals(BaseType.BOOLEAN);
  blockAwaitingDatagram=new Parameter(this,"String_Node_Str");
  blockAwaitingDatagram.setTypeEquals(BaseType.BOOLEAN);
  blockAwaitingDatagram.setExpression("String_Node_Str");
  defaultOutput=new Parameter(this,"String_Node_Str");
  defaultOutput.setTypeEquals(BaseType.GENERAL);
  defaultOutput.setExpression("String_Node_Str");
  encoding=new StringAttribute(this,"String_Node_Str");
  encoding.setExpression("String_Node_Str");
}