Program: 2443
Project: 2443
Buggy source:
public ScribNode parse(CommonTree ct){
  if (ct.getChildCount() > 0) {
    List<CommonErrorNode> errors=((List<?>)ct.getChildren()).stream().filter((c) -> (c instanceof CommonErrorNode)).map((c) -> (CommonErrorNode)c).collect(Collectors.toList());
    if (errors.size() > 0) {
      throw new RuntimeException("String_Node_Str" + errors);
    }
  }
  AntlrNodeType type=Util.getAntlrNodeType(ct);
switch (type) {
case MODULE:
    return AntlrModule.parseModule(this,ct);
case MODULEDECL:
  return AntlrModuleDecl.parseModuleDecl(this,ct);
case MESSAGESIGNATUREDECL:
return AntlrMessageSigDecl.parseMessageSigDecl(this,ct);
case PAYLOADTYPEDECL:
return AntlrDataTypeDecl.parseDataTypeDecl(this,ct);
case IMPORTMODULE:
return AntlrImportModule.parseImportModule(this,ct);
case GLOBALPROTOCOLDECL:
return AntlrGProtocolDecl.parseGPrototocolDecl(this,ct);
case ROLEDECLLIST:
return AntlrRoleDeclList.parseRoleDeclList(this,ct);
case ROLEDECL:
return AntlrRoleDecl.parseRoleDecl(this,ct);
case PARAMETERDECLLIST:
return AntlrNonRoleParamDeclList.parseNonRoleParamDeclList(this,ct);
case PARAMETERDECL:
return AntlrNonRoleParamDecl.parseNonRoleParamDecl(this,ct);
case GLOBALPROTOCOLHEADER:
return AntlrGProtocolHeader.parseGProtocolHeader(this,ct);
case GLOBALPROTOCOLDEF:
return AntlrGProtocolDefinition.parseGProtocolDefinition(this,ct);
case GLOBALPROTOCOLBLOCK:
return AntlrGProtocolBlock.parseGProtocolBlock(this,ct);
case GLOBALINTERACTIONSEQUENCE:
return AntlrGInteractionSequence.parseGInteractionSequence(this,ct);
case MESSAGESIGNATURE:
return AntlrMessageSig.parseMessageSig(this,ct);
case PAYLOAD:
return AntlrPayloadElemList.parsePayloadElemList(this,ct);
case GLOBALMESSAGETRANSFER:
return AntlrGMessageTransfer.parseGMessageTransfer(this,ct);
case GLOBALCHOICE:
return AntlrGChoice.parseGChoice(this,ct);
case GLOBALRECURSION:
return AntlrGRecursion.parseGRecursion(this,ct);
case GLOBALCONTINUE:
return AntlrGContinue.parseGContinue(this,ct);
case GLOBALPARALLEL:
return AntlrGParallel.parseGParallel(this,ct);
case GLOBALINTERRUPTIBLE:
return AntlrGInterruptible.parseGInterruptible(this,ct);
case GLOBALINTERRUPT:
return AntlrGInterrupt.parseGInterrupt(this,ct);
case GLOBALDO:
return AntlrGDo.parseGDo(this,ct);
case ROLEINSTANTIATIONLIST:
return AntlrRoleArgList.parseRoleArgList(this,ct);
case ROLEINSTANTIATION:
return AntlrRoleArg.parseRoleArg(this,ct);
case ARGUMENTINSTANTIATIONLIST:
return AntlrNonRoleArgList.parseNonRoleArgList(this,ct);
default :
throw new RuntimeException("String_Node_Str" + type);
}
}

Fixed version (ground truth):
public ScribNode parse(CommonTree ct){
  if (ct.getChildCount() > 0) {
    List<CommonErrorNode> errors=((List<?>)ct.getChildren()).stream().filter((c) -> (c instanceof CommonErrorNode)).map((c) -> (CommonErrorNode)c).collect(Collectors.toList());
    if (errors.size() > 0) {
      throw new RuntimeException("String_Node_Str" + errors);
    }
  }
  AntlrNodeType type=ScribParserUtil.getAntlrNodeType(ct);
switch (type) {
case MODULE:
    return AntlrModule.parseModule(this,ct);
case MODULEDECL:
  return AntlrModuleDecl.parseModuleDecl(this,ct);
case MESSAGESIGNATUREDECL:
return AntlrMessageSigDecl.parseMessageSigDecl(this,ct);
case PAYLOADTYPEDECL:
return AntlrDataTypeDecl.parseDataTypeDecl(this,ct);
case IMPORTMODULE:
return AntlrImportModule.parseImportModule(this,ct);
case GLOBALPROTOCOLDECL:
return AntlrGProtocolDecl.parseGPrototocolDecl(this,ct);
case ROLEDECLLIST:
return AntlrRoleDeclList.parseRoleDeclList(this,ct);
case ROLEDECL:
return AntlrRoleDecl.parseRoleDecl(this,ct);
case PARAMETERDECLLIST:
return AntlrNonRoleParamDeclList.parseNonRoleParamDeclList(this,ct);
case PARAMETERDECL:
return AntlrNonRoleParamDecl.parseNonRoleParamDecl(this,ct);
case GLOBALPROTOCOLHEADER:
return AntlrGProtocolHeader.parseGProtocolHeader(this,ct);
case GLOBALPROTOCOLDEF:
return AntlrGProtocolDefinition.parseGProtocolDefinition(this,ct);
case GLOBALPROTOCOLBLOCK:
return AntlrGProtocolBlock.parseGProtocolBlock(this,ct);
case GLOBALINTERACTIONSEQUENCE:
return AntlrGInteractionSequence.parseGInteractionSequence(this,ct);
case MESSAGESIGNATURE:
return AntlrMessageSig.parseMessageSig(this,ct);
case PAYLOAD:
return AntlrPayloadElemList.parsePayloadElemList(this,ct);
case GLOBALMESSAGETRANSFER:
return AntlrGMessageTransfer.parseGMessageTransfer(this,ct);
case GLOBALCHOICE:
return AntlrGChoice.parseGChoice(this,ct);
case GLOBALRECURSION:
return AntlrGRecursion.parseGRecursion(this,ct);
case GLOBALCONTINUE:
return AntlrGContinue.parseGContinue(this,ct);
case GLOBALPARALLEL:
return AntlrGParallel.parseGParallel(this,ct);
case GLOBALINTERRUPTIBLE:
return AntlrGInterruptible.parseGInterruptible(this,ct);
case GLOBALINTERRUPT:
return AntlrGInterrupt.parseGInterrupt(this,ct);
case GLOBALDO:
return AntlrGDo.parseGDo(this,ct);
case ROLEINSTANTIATIONLIST:
return AntlrRoleArgList.parseRoleArgList(this,ct);
case ROLEINSTANTIATION:
return AntlrRoleArg.parseRoleArg(this,ct);
case ARGUMENTINSTANTIATIONLIST:
return AntlrNonRoleArgList.parseNonRoleArgList(this,ct);
default :
throw new RuntimeException("String_Node_Str" + type);
}
}