Program: 90576
Project: 90576
Buggy source:
@Override public void processEvent(EventRequest portletReq,EventResponse portletResp) throws PortletException, IOException {
  LOGGER.entering(LOG_CLASS,"String_Node_Str");
  portletResp.setRenderParameters(portletReq);
  long tid=Thread.currentThread().getId();
  portletReq.setAttribute(THREADID_ATTR,tid);
  StringWriter writer=new StringWriter();
  JSR286ApiTestCaseDetails tcd=new JSR286ApiTestCaseDetails();
  ClassChecker cc=new ClassChecker(portletReq.getEvent().getClass());
  Event evt=portletReq.getEvent();
  TestResult tr0=tcd.getTestResultSucceeded(V2PORTLETTESTS_EVENT_APIEVENT_GETQNAME1);
  QName qn=evt.getQName();
  QName xmlqn=new QName("String_Node_Str","String_Node_Str");
  if (qn == null) {
    tr0.appendTcDetail("String_Node_Str");
  }
 else   if (!qn.equals(xmlqn)) {
    StringBuilder txt=new StringBuilder(128);
    txt.append("String_Node_Str");
    txt.append("String_Node_Str").append(xmlqn);
    txt.append("String_Node_Str").append(qn);
    tr0.appendTcDetail(txt.toString());
  }
  tr0.writeTo(writer);
  TestResult tr1=tcd.getTestResultSucceeded(V2PORTLETTESTS_EVENT_APIEVENT_GETQNAME2);
  QName qn1=evt.getQName();
  StringBuilder txt1=new StringBuilder(128);
  txt1.append(qn1);
  if (qn1 == null) {
    tr1.appendTcDetail("String_Node_Str");
    tr1.appendTcDetail(txt1.toString());
  }
  tr1.writeTo(writer);
  TestResult tr2=tcd.getTestResultSucceeded(V2PORTLETTESTS_EVENT_APIEVENT_GETNAME1);
  String qn2=evt.getName();
  String evtname="String_Node_Str";
  if (qn2 == null) {
    tr2.appendTcDetail("String_Node_Str");
  }
 else   if (!qn2.equals(evtname)) {
    StringBuilder txt2=new StringBuilder(128);
    txt2.append("String_Node_Str");
    txt2.append("String_Node_Str").append(evtname);
    txt2.append("String_Node_Str").append(qn2);
    tr2.appendTcDetail(txt2.toString());
  }
  tr2.writeTo(writer);
  TestResult tr3=tcd.getTestResultSucceeded(V2PORTLETTESTS_EVENT_APIEVENT_GETNAME2);
  if (qn2 == null) {
    tr3.appendTcDetail("String_Node_Str");
  }
  tr3.writeTo(writer);
  TestResult tr4=tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETVALUE1);
  try {
    Object val=evt.getValue();
    if (val == null) {
      tr4.appendTcDetail("String_Node_Str");
    }
    if ((val instanceof String)) {
      String txt4=(String)val;
      if (txt4.equals("String_Node_Str")) {
        tr4.setTcSuccess(true);
      }
 else {
        tr4.appendTcDetail("String_Node_Str" + txt4);
      }
    }
  }
 catch (  Exception e) {
    tr4.appendTcDetail(e.toString());
  }
  tr4.writeTo(writer);
  TestResult tr5=tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETVALUE2);
  Serializable val1=evt.getValue();
  if (val1 == null) {
    tr5.setTcSuccess(true);
  }
 else {
    tr5.appendTcDetail("String_Node_Str" + val1.toString());
  }
  tr5.writeTo(writer);
  portletReq.getPortletSession().setAttribute(Constants.RESULT_ATTR_PREFIX + "String_Node_Str",writer.toString(),APPLICATION_SCOPE);
}

Fixed version (ground truth):
@Override public void processEvent(EventRequest portletReq,EventResponse portletResp) throws PortletException, IOException {
  LOGGER.entering(LOG_CLASS,"String_Node_Str");
  portletResp.setRenderParameters(portletReq);
  long tid=Thread.currentThread().getId();
  portletReq.setAttribute(THREADID_ATTR,tid);
  StringWriter writer=new StringWriter();
  JSR286ApiTestCaseDetails tcd=new JSR286ApiTestCaseDetails();
  Event evt=portletReq.getEvent();
  TestResult tr0=tcd.getTestResultSucceeded(V2PORTLETTESTS_EVENT_APIEVENT_GETQNAME1);
  QName qn=evt.getQName();
  QName xmlqn=new QName("String_Node_Str","String_Node_Str");
  if (qn == null) {
    tr0.appendTcDetail("String_Node_Str");
  }
 else   if (!qn.equals(xmlqn)) {
    StringBuilder txt=new StringBuilder(128);
    txt.append("String_Node_Str");
    txt.append("String_Node_Str").append(xmlqn);
    txt.append("String_Node_Str").append(qn);
    tr0.appendTcDetail(txt.toString());
  }
  tr0.writeTo(writer);
  TestResult tr1=tcd.getTestResultSucceeded(V2PORTLETTESTS_EVENT_APIEVENT_GETQNAME2);
  QName qn1=evt.getQName();
  StringBuilder txt1=new StringBuilder(128);
  txt1.append(qn1);
  if (qn1 == null) {
    tr1.appendTcDetail("String_Node_Str");
    tr1.appendTcDetail(txt1.toString());
  }
  tr1.writeTo(writer);
  TestResult tr2=tcd.getTestResultSucceeded(V2PORTLETTESTS_EVENT_APIEVENT_GETNAME1);
  String qn2=evt.getName();
  String evtname="String_Node_Str";
  if (qn2 == null) {
    tr2.appendTcDetail("String_Node_Str");
  }
 else   if (!qn2.equals(evtname)) {
    StringBuilder txt2=new StringBuilder(128);
    txt2.append("String_Node_Str");
    txt2.append("String_Node_Str").append(evtname);
    txt2.append("String_Node_Str").append(qn2);
    tr2.appendTcDetail(txt2.toString());
  }
  tr2.writeTo(writer);
  TestResult tr3=tcd.getTestResultSucceeded(V2PORTLETTESTS_EVENT_APIEVENT_GETNAME2);
  if (qn2 == null) {
    tr3.appendTcDetail("String_Node_Str");
  }
  tr3.writeTo(writer);
  TestResult tr4=tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETVALUE1);
  try {
    Object val=evt.getValue();
    if (val == null) {
      tr4.appendTcDetail("String_Node_Str");
    }
    if ((val instanceof String)) {
      String txt4=(String)val;
      if (txt4.equals("String_Node_Str")) {
        tr4.setTcSuccess(true);
      }
 else {
        tr4.appendTcDetail("String_Node_Str" + txt4);
      }
    }
  }
 catch (  Exception e) {
    tr4.appendTcDetail(e.toString());
  }
  tr4.writeTo(writer);
  TestResult tr5=tcd.getTestResultFailed(V2PORTLETTESTS_EVENT_APIEVENT_GETVALUE2);
  Serializable val1=evt.getValue();
  if (val1 == null) {
    tr5.setTcSuccess(true);
  }
 else {
    tr5.appendTcDetail("String_Node_Str" + val1.toString());
  }
  tr5.writeTo(writer);
  portletReq.getPortletSession().setAttribute(Constants.RESULT_ATTR_PREFIX + "String_Node_Str",writer.toString(),APPLICATION_SCOPE);
}