Program: 24714
Project: 24714
Buggy source:
public void drawSoftwarePackages(){
  FlexCellFormatter formatter=this.matrix.getFlexCellFormatter();
  for (int j=0; j < softwarePackages.size(); j++) {
    Label packageLabel=new Label(softwarePackages.get(j).getName());
    final DecoratedPopupPanel simplePopup=new DecoratedPopupPanel(true);
    simplePopup.setWidth("String_Node_Str");
    simplePopup.setWidget(new HTML(softwarePackages.get(j).getDescription()));
    packageLabel.addMouseOverHandler(new MouseOverHandler(){
      public void onMouseOver(      MouseOverEvent event){
        Widget source=(Widget)event.getSource();
        int left=source.getAbsoluteLeft() + 40;
        int top=source.getAbsoluteTop() + 20;
        simplePopup.setPopupPosition(left,top);
        simplePopup.show();
      }
    }
);
    packageLabel.addMouseOutHandler(new MouseOutHandler(){
      public void onMouseOut(      MouseOutEvent event){
        simplePopup.hide();
      }
    }
);
    matrix.setWidget(j + 1,0,packageLabel);
    final SummaryElementHyperLinkElement tradeoffReasonLink=new SummaryElementHyperLinkElement(softwarePackages.get(j).getId(),"String_Node_Str");
    final int index=j;
    final int packageid=softwarePackages.get(j).getId();
    tradeoffReasonLink.addClickHandler(new ClickHandler(){
      public void onClick(      ClickEvent event){
        editTradeoffReasonDialog=new EditTradeoffReasonDialog(tradeoffReasons.get(index),tradeoffReasons,PerformTradeoffAnalysisPane.this);
        editTradeoffReasonDialog.center();
        editTradeoffReasonDialog.setModal(true);
        editTradeoffReasonDialog.show();
      }
    }
);
    final ListBox priorityListBox=new ListBox();
    for (int k=0; k < softwarePackages.size(); k++)     priorityListBox.addItem(k + "String_Node_Str",k + 1 + "String_Node_Str");
    if (tradeoffReasons.get(j).getPriority().intValue() != -1) {
      priorityListBox.setSelectedIndex(tradeoffReasons.get(j).getPriority().intValue());
    }
 else {
      System.out.println("String_Node_Str");
      priorityListBox.setSelectedIndex(0);
    }
    priorityListBox.addChangeHandler(new ChangeHandler(){
      public void onChange(      ChangeEvent event){
        int valueSelected=priorityListBox.getSelectedIndex();
        if (valueSelected == 0) {
          valueSelected=-1;
        }
        System.out.println("String_Node_Str" + "String_Node_Str" + packageid + "String_Node_Str"+ valueSelected);
        setPackagePriority(packageid,valueSelected);
        tradeoffReasons.get(index).setPriority(valueSelected);
        System.out.println("String_Node_Str");
      }
    }
);
    if (j >= 1) {
      matrix.setWidget(j + 1,attributes.size() + listOfRequirements.size() + 2,tradeoffReasonLink);
      formatter.setHorizontalAlignment(j + 1,attributes.size() + listOfRequirements.size() + 2,HasHorizontalAlignment.ALIGN_RIGHT);
      formatter.setStyleName(j + 1,attributes.size() + listOfRequirements.size() + 2,"String_Node_Str");
      matrix.setWidget(j + 1,attributes.size() + listOfRequirements.size() + 3,priorityListBox);
      formatter.setHorizontalAlignment(j + 1,attributes.size() + listOfRequirements.size() + 3,HasHorizontalAlignment.ALIGN_RIGHT);
      formatter.setStyleName(j + 1,attributes.size() + listOfRequirements.size() + 3,"String_Node_Str");
    }
    formatter.setHorizontalAlignment(j + 1,0,HasHorizontalAlignment.ALIGN_RIGHT);
    formatter.setStyleName(j + 1,0,"String_Node_Str");
  }
}

Fixed version (ground truth):
public void drawSoftwarePackages(){
  FlexCellFormatter formatter=this.matrix.getFlexCellFormatter();
  for (int j=0; j < softwarePackages.size(); j++) {
    Label packageLabel=new Label(softwarePackages.get(j).getName());
    final DecoratedPopupPanel simplePopup=new DecoratedPopupPanel(true);
    simplePopup.setWidth("String_Node_Str");
    simplePopup.setWidget(new HTML(softwarePackages.get(j).getDescription()));
    packageLabel.addMouseOverHandler(new MouseOverHandler(){
      public void onMouseOver(      MouseOverEvent event){
        Widget source=(Widget)event.getSource();
        int left=source.getAbsoluteLeft() + 40;
        int top=source.getAbsoluteTop() + 20;
        simplePopup.setPopupPosition(left,top);
        simplePopup.show();
      }
    }
);
    packageLabel.addMouseOutHandler(new MouseOutHandler(){
      public void onMouseOut(      MouseOutEvent event){
        simplePopup.hide();
      }
    }
);
    matrix.setWidget(j + 1,0,packageLabel);
    final SummaryElementHyperLinkElement tradeoffReasonLink=new SummaryElementHyperLinkElement(softwarePackages.get(j).getId(),"String_Node_Str");
    final int index=j;
    final int packageid=softwarePackages.get(j).getId();
    tradeoffReasonLink.addClickHandler(new ClickHandler(){
      public void onClick(      ClickEvent event){
        editTradeoffReasonDialog=new EditTradeoffReasonDialog(tradeoffReasons.get(index),tradeoffReasons,PerformTradeoffAnalysisPane.this);
        editTradeoffReasonDialog.center();
        editTradeoffReasonDialog.setModal(true);
        editTradeoffReasonDialog.show();
      }
    }
);
    final ListBox priorityListBox=new ListBox();
    for (int k=0; k < softwarePackages.size(); k++)     priorityListBox.addItem(k + "String_Node_Str",k + 1 + "String_Node_Str");
    if (tradeoffReasons.get(j).getPriority().intValue() != -1) {
      priorityListBox.setSelectedIndex(tradeoffReasons.get(j).getPriority().intValue());
    }
 else {
      priorityListBox.setSelectedIndex(0);
    }
    priorityListBox.addChangeHandler(new ChangeHandler(){
      public void onChange(      ChangeEvent event){
        int valueSelected=priorityListBox.getSelectedIndex();
        if (valueSelected == 0) {
          valueSelected=-1;
        }
        System.out.println("String_Node_Str" + "String_Node_Str" + packageid + "String_Node_Str"+ valueSelected);
        setPackagePriority(packageid,valueSelected);
        tradeoffReasons.get(index).setPriority(valueSelected);
        System.out.println("String_Node_Str");
      }
    }
);
    if (j >= 1) {
      matrix.setWidget(j + 1,attributes.size() + listOfRequirements.size() + 2,tradeoffReasonLink);
      formatter.setHorizontalAlignment(j + 1,attributes.size() + listOfRequirements.size() + 2,HasHorizontalAlignment.ALIGN_RIGHT);
      formatter.setStyleName(j + 1,attributes.size() + listOfRequirements.size() + 2,"String_Node_Str");
      matrix.setWidget(j + 1,attributes.size() + listOfRequirements.size() + 3,priorityListBox);
      formatter.setHorizontalAlignment(j + 1,attributes.size() + listOfRequirements.size() + 3,HasHorizontalAlignment.ALIGN_RIGHT);
      formatter.setStyleName(j + 1,attributes.size() + listOfRequirements.size() + 3,"String_Node_Str");
    }
    formatter.setHorizontalAlignment(j + 1,0,HasHorizontalAlignment.ALIGN_RIGHT);
    formatter.setStyleName(j + 1,0,"String_Node_Str");
  }
}