Program: 89464
Project: 89464
Buggy source:
private static void saveStockData(GenericObjectSQL wertpapier,BaseFetcher base) throws Exception, SQLException, RemoteException, ApplicationException {
  Connection conn=SQLUtils.getConnection();
  PreparedStatement del=conn.prepareStatement("String_Node_Str");
  del.setString(1,wertpapier.getID());
  del.executeUpdate();
  PreparedStatement insert=conn.prepareStatement("String_Node_Str");
  for (  Datacontainer dc : base.getHistQuotes()) {
    insert.setString(1,wertpapier.getID());
    insert.setBigDecimal(2,(BigDecimal)dc.data.get("String_Node_Str"));
    insert.setString(3,(String)dc.data.get("String_Node_Str"));
    insert.setDate(4,new java.sql.Date(((Date)dc.data.get("String_Node_Str")).getTime()));
    insert.addBatch();
  }
  insert.executeBatch();
  del=conn.prepareStatement("String_Node_Str");
  del.setString(1,wertpapier.getID());
  del.executeUpdate();
  if (base.getHistEvents() != null) {
    insert=conn.prepareStatement("String_Node_Str");
    for (    Datacontainer dc : base.getHistEvents()) {
      String action=(String)dc.data.get("String_Node_Str");
      if (action.equals(Const.CASHDIVIDEND)) {
        action="String_Node_Str";
      }
 else       if (action.equals(Const.STOCKDIVIDEND)) {
        action="String_Node_Str";
      }
 else       if (action.equals(Const.STOCKSPLIT)) {
        action="String_Node_Str";
      }
 else       if (action.equals(Const.SUBSCRIPTIONRIGHTS)) {
        action="String_Node_Str";
      }
 else {
        System.out.println("String_Node_Str" + action + "String_Node_Str");
        continue;
      }
      insert.setString(1,wertpapier.getID());
      insert.setString(2,(String)dc.data.get("String_Node_Str"));
      insert.setBigDecimal(3,(BigDecimal)dc.data.get("String_Node_Str"));
      insert.setString(4,action);
      insert.setDate(5,new java.sql.Date(((Date)dc.data.get("String_Node_Str")).getTime()));
      insert.setString(6,(String)dc.data.get("String_Node_Str"));
      insert.addBatch();
    }
    insert.executeBatch();
  }
  calcPerformanceKurse(wertpapier,conn);
  Utils.markRecalc(null);
}

Fixed version (ground truth):
private static void saveStockData(GenericObjectSQL wertpapier,BaseFetcher base) throws Exception {
  Connection conn=SQLUtils.getConnection();
  PreparedStatement del=conn.prepareStatement("String_Node_Str");
  del.setString(1,wertpapier.getID());
  del.executeUpdate();
  PreparedStatement insert=conn.prepareStatement("String_Node_Str");
  for (  Datacontainer dc : base.getHistQuotes()) {
    insert.setString(1,wertpapier.getID());
    insert.setBigDecimal(2,(BigDecimal)dc.data.get("String_Node_Str"));
    insert.setString(3,(String)dc.data.get("String_Node_Str"));
    insert.setDate(4,new java.sql.Date(((Date)dc.data.get("String_Node_Str")).getTime()));
    insert.addBatch();
  }
  insert.executeBatch();
  del=conn.prepareStatement("String_Node_Str");
  del.setString(1,wertpapier.getID());
  del.executeUpdate();
  if (base.getHistEvents() != null) {
    insert=conn.prepareStatement("String_Node_Str");
    for (    Datacontainer dc : base.getHistEvents()) {
      String action=(String)dc.data.get("String_Node_Str");
      if (action.equals(Const.CASHDIVIDEND)) {
        action="String_Node_Str";
      }
 else       if (action.equals(Const.STOCKDIVIDEND)) {
        action="String_Node_Str";
      }
 else       if (action.equals(Const.STOCKSPLIT)) {
        action="String_Node_Str";
      }
 else       if (action.equals(Const.SUBSCRIPTIONRIGHTS)) {
        action="String_Node_Str";
      }
 else {
        System.out.println("String_Node_Str" + action + "String_Node_Str");
        continue;
      }
      insert.setString(1,wertpapier.getID());
      insert.setString(2,(String)dc.data.get("String_Node_Str"));
      insert.setBigDecimal(3,(BigDecimal)dc.data.get("String_Node_Str"));
      insert.setString(4,action);
      insert.setDate(5,new java.sql.Date(((Date)dc.data.get("String_Node_Str")).getTime()));
      insert.setString(6,(String)dc.data.get("String_Node_Str"));
      insert.addBatch();
    }
    insert.executeBatch();
  }
  calcPerformanceKurse(wertpapier,conn);
  Utils.markRecalc(null);
}