Program: 145295
Project: 145295
Buggy source:
public void getView(int qIndex){
  prompt=model.getQuestion(qIndex);
  int qType=prompt.getDataType();
  int contType=prompt.getControlType();
  System.out.println("String_Node_Str" + qType + "String_Node_Str"+ contType);
  System.out.println("String_Node_Str" + Constants.DATATYPE_LIST_EXCLUSIVE);
switch (contType) {
case Constants.CONTROL_INPUT:
switch (qType) {
case Constants.DATATYPE_TEXT:
      widget=new TextQuestionWidget(prompt);
    widget.setCommandListener(this);
  widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
case Constants.DATATYPE_DATE:
widget=new DateQuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
case Constants.DATATYPE_TIME:
widget=new TimeQuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
case Constants.DATATYPE_INTEGER:
widget=new NumericQuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
}
break;
case Constants.CONTROL_SELECT_ONE:
widget=new Select1QuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
case Constants.CONTROL_SELECT_MULTI:
widget=new SelectQuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
case Constants.CONTROL_TEXTAREA:
widget=new TextQuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
default :
System.out.println("String_Node_Str");
break;
}
}

Fixed version (ground truth):
public void getView(int qIndex){
  prompt=model.getQuestion(qIndex);
  int qType=prompt.getDataType();
  int contType=prompt.getControlType();
  System.out.println("String_Node_Str" + qType + "String_Node_Str"+ contType);
  System.out.println("String_Node_Str" + Constants.DATATYPE_LIST_EXCLUSIVE);
switch (contType) {
case Constants.CONTROL_INPUT:
switch (qType) {
case Constants.DATATYPE_DATE:
      widget=new DateQuestionWidget(prompt);
    widget.setCommandListener(this);
  widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
case Constants.DATATYPE_TIME:
widget=new TimeQuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
case Constants.DATATYPE_INTEGER:
widget=new NumericQuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
}
break;
case Constants.CONTROL_SELECT_ONE:
widget=new Select1QuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
case Constants.CONTROL_SELECT_MULTI:
widget=new SelectQuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
case Constants.CONTROL_TEXTAREA:
widget=new TextQuestionWidget(prompt);
widget.setCommandListener(this);
widget.setItemCommandListner(this);
controller.setDisplay(widget);
break;
default :
System.out.println("String_Node_Str");
break;
}
}