Program: 124697
Project: 124697
Buggy source:
@Override protected void updateEditableStatus(boolean isEditable){
  authenticationCombo.setEnabled(isEditable);
  namenodeUriText.setEditable(isEditable);
  jobtrackerUriText.setEditable(isEditable);
  rmSchedulerText.setEditable(isEditable);
  jobHistoryText.setEditable(isEditable);
  stagingDirectoryText.setEditable(isEditable);
  useDNHostBtn.setEnabled(isEditable);
  kerberosBtn.setEnabled(isEditable && (isCurrentHadoopVersionSupportSecurity() || isCustomUnsupportHasSecurity()));
  boolean isKerberosEditable=kerberosBtn.isEnabled() && kerberosBtn.getSelection();
  namenodePrincipalText.setEditable(isKerberosEditable);
  jtOrRmPrincipalText.setEditable(isKerberosEditable);
  jobHistoryPrincipalText.setEditable(isEditable && isJobHistoryPrincipalEditable());
  userNameText.setEditable(isEditable && !kerberosBtn.getSelection());
  groupText.setEditable(isEditable && (isCurrentHadoopVersionSupportGroup() || isCustomUnsupportHasGroup()));
  keytabBtn.setEnabled(isEditable && kerberosBtn.getSelection());
  boolean isKeyTabEditable=keytabBtn.isEnabled() && keytabBtn.getSelection();
  keytabText.setEditable(isKeyTabEditable);
  keytabPrincipalText.setEditable(isKeyTabEditable);
  maprTBtn.setEnabled(isEditable && isCurrentHadoopVersionSupportMapRTicket());
  boolean isMaprTEditable=maprTBtn.isEnabled() && maprTBtn.getSelection();
  maprTPasswordText.setEditable(isMaprTEditable && !isKerberosEditable);
  maprTClusterText.setEditable(isMaprTEditable);
  maprTDurationText.setEditable(isMaprTEditable);
  setMaprTHomeDirBtn.setEnabled(isEditable && maprTBtn.getSelection());
  setHadoopLoginBtn.setEnabled(isEditable && maprTBtn.getSelection());
  preloadAuthentificationBtn.setEnabled(isEditable && maprTBtn.getSelection());
  maprTHomeDirText.setEditable(isMaprTEditable);
  maprTHadoopLoginText.setEditable(isMaprTEditable);
  hadoopPropertiesComposite.setEnabled(isEditable);
  propertiesDialog.updateStatusLabel(getHadoopProperties());
}

Fixed version (ground truth):
@Override protected void updateEditableStatus(boolean isEditable){
  authenticationCombo.setEnabled(isEditable);
  namenodeUriText.setEditable(isEditable);
  jobtrackerUriText.setEditable(isEditable);
  rmSchedulerText.setEditable(isEditable);
  jobHistoryText.setEditable(isEditable);
  stagingDirectoryText.setEditable(isEditable);
  useDNHostBtn.setEnabled(isEditable);
  kerberosBtn.setEnabled(isEditable && (isCurrentHadoopVersionSupportSecurity() || isCustomUnsupportHasSecurity()));
  boolean isKerberosEditable=kerberosBtn.isEnabled() && kerberosBtn.getSelection();
  namenodePrincipalText.setEditable(isKerberosEditable);
  jtOrRmPrincipalText.setEditable(isKerberosEditable);
  jobHistoryPrincipalText.setEditable(isEditable && isJobHistoryPrincipalEditable());
  userNameText.setEditable(isEditable && !kerberosBtn.getSelection());
  groupText.setEditable(isEditable && (isCurrentHadoopVersionSupportGroup() || isCustomUnsupportHasGroup()));
  keytabBtn.setEnabled(isEditable && kerberosBtn.getSelection());
  boolean isKeyTabEditable=keytabBtn.isEnabled() && keytabBtn.getSelection();
  keytabText.setEditable(isKeyTabEditable);
  keytabPrincipalText.setEditable(isKeyTabEditable);
  maprTBtn.setEnabled(isEditable && isCurrentHadoopVersionSupportMapRTicket());
  boolean isMaprTEditable=maprTBtn.isEnabled() && maprTBtn.getSelection();
  maprTPasswordText.setEditable(isMaprTEditable && !isKerberosEditable);
  maprTClusterText.setEditable(isMaprTEditable);
  maprTDurationText.setEditable(isMaprTEditable);
  setMaprTHomeDirBtn.setEnabled(isEditable && maprTBtn.getSelection());
  setHadoopLoginBtn.setEnabled(isEditable && maprTBtn.getSelection());
  preloadAuthentificationBtn.setEnabled(isEditable && maprTBtn.getSelection());
  maprTHomeDirText.setEditable(isMaprTEditable);
  maprTHadoopLoginText.setEditable(isMaprTEditable);
  propertiesDialog.updateStatusLabel(getHadoopProperties());
}