Program: 125481
Project: 125481
Buggy source:
private void addListenerForImpalaAuthentication(){
  useKerberosForImpala.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (useKerberosForImpala.getSelection()) {
        GridData hadoopData=(GridData)authenticationComForImpala.getLayoutData();
        hadoopData.exclude=false;
        authenticationComForImpala.setVisible(true);
        authenticationComForImpala.setLayoutData(hadoopData);
        authenticationComForImpala.getParent().layout();
        authenticationGrpForImpala.layout();
        authenticationGrpForImpala.getParent().layout();
        getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_USE_KRB,Boolean.TRUE.toString());
      }
 else {
        GridData hadoopData=(GridData)authenticationComForImpala.getLayoutData();
        hadoopData.exclude=true;
        authenticationComForImpala.setVisible(false);
        authenticationComForImpala.setLayoutData(hadoopData);
        authenticationComForImpala.getParent().layout();
        authenticationGrpForImpala.layout();
        authenticationGrpForImpala.getParent().layout();
        getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_USE_KRB,Boolean.FALSE.toString());
      }
      urlConnectionStringText.setText(getStringConnection());
    }
  }
);
  impalaPrincipalTxt.getTextControl().addModifyListener(new ModifyListener(){
    @Override public void modifyText(    ModifyEvent e){
      if (!isContextMode()) {
        getConnection().getParameters().put(ConnParameterKeys.IMPALA_AUTHENTICATION_PRINCIPLA,impalaPrincipalTxt.getText());
        urlConnectionStringText.setText(getStringConnection());
      }
    }
  }
);
}

Fixed version (ground truth):
private void addListenerForImpalaAuthentication(){
  useKerberosForImpala.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (useKerberosForImpala.getSelection()) {
        GridData hadoopData=(GridData)authenticationComForImpala.getLayoutData();
        hadoopData.exclude=false;
        authenticationComForImpala.setVisible(true);
        authenticationComForImpala.setLayoutData(hadoopData);
        authenticationComForImpala.getParent().layout();
        authenticationGrpForImpala.layout();
        authenticationGrpForImpala.getParent().layout();
        getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_USE_KRB,Boolean.TRUE.toString());
        getConnection().getParameters().put(ConnParameterKeys.IMPALA_AUTHENTICATION_PRINCIPLA,impalaPrincipalTxt.getText());
        urlConnectionStringText.setText(getStringConnection());
      }
 else {
        GridData hadoopData=(GridData)authenticationComForImpala.getLayoutData();
        hadoopData.exclude=true;
        authenticationComForImpala.setVisible(false);
        authenticationComForImpala.setLayoutData(hadoopData);
        authenticationComForImpala.getParent().layout();
        authenticationGrpForImpala.layout();
        authenticationGrpForImpala.getParent().layout();
        getConnection().getParameters().put(ConnParameterKeys.CONN_PARA_KEY_USE_KRB,Boolean.FALSE.toString());
      }
      urlConnectionStringText.setText(getStringConnection());
    }
  }
);
  impalaPrincipalTxt.getTextControl().addModifyListener(new ModifyListener(){
    @Override public void modifyText(    ModifyEvent e){
      if (!isContextMode() && impalaPrincipalTxt.isVisiable()) {
        getConnection().getParameters().put(ConnParameterKeys.IMPALA_AUTHENTICATION_PRINCIPLA,impalaPrincipalTxt.getText());
        urlConnectionStringText.setText(getStringConnection());
      }
    }
  }
);
}