Program: 47766
Project: 47766
Buggy source:
private void createConnectionPanel(Shell dialog){
  Group connectionGroup=new Group(dialog,SWT.SHADOW_ETCHED_IN);
  connectionGroup.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  GridLayout connectionGroupLayout=new GridLayout();
  connectionGroupLayout.marginWidth=5;
  connectionGroupLayout.marginHeight=5;
  connectionGroupLayout.verticalSpacing=5;
  connectionGroupLayout.horizontalSpacing=5;
  GridData gData=new GridData(SWT.FILL,SWT.FILL,true,false);
  connectionGroup.setLayoutData(gData);
  connectionGroup.setLayout(connectionGroupLayout);
  Composite textFieldPanel=new Composite(connectionGroup,SWT.NONE);
  GridData gridData=new GridData(SWT.FILL,SWT.FILL,true,false);
  textFieldPanel.setLayoutData(gridData);
  textFieldPanel.setLayout(new GridLayout(5,false));
  wlUrl=new Label(textFieldPanel,SWT.RIGHT);
  wlUrl.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  fdlUrl=new GridData();
  fdlUrl.widthHint=75;
  wlUrl.setLayoutData(fdlUrl);
  wUrl=new Text(textFieldPanel,SWT.SINGLE | SWT.LEFT | SWT.BORDER);
  fdUrl=new GridData();
  fdUrl.widthHint=150;
  wUrl.setLayoutData(fdUrl);
  wUrl.addKeyListener(new KeyAdapter(){
    public void keyPressed(    KeyEvent e){
      handleConnectionButton();
    }
  }
);
  wlUserID=new Label(textFieldPanel,SWT.RIGHT);
  wlUserID.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  fdlUserID=new GridData();
  fdlUserID.widthHint=75;
  wlUserID.setLayoutData(fdlUserID);
  wUserID=new Text(textFieldPanel,SWT.SINGLE | SWT.LEFT | SWT.BORDER);
  fdUserID=new GridData();
  fdUserID.widthHint=150;
  wUserID.setLayoutData(fdUserID);
  wPlaceHolderLabel=new Label(textFieldPanel,SWT.RIGHT);
  wPlaceHolderLabel.setText("String_Node_Str");
  fdlPlaceHolderLabel=new GridData();
  fdlPlaceHolderLabel.widthHint=75;
  wlUserID.setLayoutData(fdlPlaceHolderLabel);
  wlPort=new Label(textFieldPanel,SWT.RIGHT);
  wlPort.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  fdlPort=new GridData();
  fdlPort.widthHint=75;
  wlPort.setLayoutData(fdlPort);
  wPort=new Text(textFieldPanel,SWT.SINGLE | SWT.LEFT | SWT.BORDER);
  fdPort=new GridData();
  fdPort.widthHint=150;
  wPort.setLayoutData(fdPort);
  wPort.addKeyListener(new KeyAdapter(){
    public void keyPressed(    KeyEvent e){
      handleConnectionButton();
    }
  }
);
  wlPassword=new Label(textFieldPanel,SWT.RIGHT);
  wlPassword.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  fdlPassword=new GridData();
  fdlPassword.widthHint=75;
  wlPassword.setLayoutData(fdlPassword);
  wPassword=new Text(textFieldPanel,SWT.SINGLE | SWT.LEFT | SWT.BORDER);
  wPassword.setEchoChar('*');
  fdPassword=new GridData();
  fdPassword.widthHint=150;
  wPassword.setLayoutData(fdPassword);
  wConnectionButton=new Button(textFieldPanel,SWT.CENTER);
  fdConnectionButton=new GridData();
  fdConnectionButton.widthHint=75;
  wConnectionButton.setLayoutData(fdConnectionButton);
  wConnectionButton.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  wConnectionButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      openFileCombo.setText(buildHadoopFileSystemUrlString());
      resolveVfsBrowser();
    }
  }
);
  textFieldPanel.setTabList(new Control[]{wUrl,wPort,wUserID,wPassword,wConnectionButton});
}

Fixed version (ground truth):
private void createConnectionPanel(final Shell dialog){
  Group connectionGroup=new Group(dialog,SWT.SHADOW_ETCHED_IN);
  connectionGroup.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  GridLayout connectionGroupLayout=new GridLayout();
  connectionGroupLayout.marginWidth=5;
  connectionGroupLayout.marginHeight=5;
  connectionGroupLayout.verticalSpacing=5;
  connectionGroupLayout.horizontalSpacing=5;
  GridData gData=new GridData(SWT.FILL,SWT.FILL,true,false);
  connectionGroup.setLayoutData(gData);
  connectionGroup.setLayout(connectionGroupLayout);
  Composite textFieldPanel=new Composite(connectionGroup,SWT.NONE);
  GridData gridData=new GridData(SWT.FILL,SWT.FILL,true,false);
  textFieldPanel.setLayoutData(gridData);
  textFieldPanel.setLayout(new GridLayout(5,false));
  wlUrl=new Label(textFieldPanel,SWT.RIGHT);
  wlUrl.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  fdlUrl=new GridData();
  fdlUrl.widthHint=75;
  wlUrl.setLayoutData(fdlUrl);
  wUrl=new Text(textFieldPanel,SWT.SINGLE | SWT.LEFT | SWT.BORDER);
  fdUrl=new GridData();
  fdUrl.widthHint=150;
  wUrl.setLayoutData(fdUrl);
  wUrl.addKeyListener(new KeyAdapter(){
    public void keyPressed(    KeyEvent e){
      handleConnectionButton();
    }
  }
);
  wlUserID=new Label(textFieldPanel,SWT.RIGHT);
  wlUserID.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  fdlUserID=new GridData();
  fdlUserID.widthHint=75;
  wlUserID.setLayoutData(fdlUserID);
  wUserID=new Text(textFieldPanel,SWT.SINGLE | SWT.LEFT | SWT.BORDER);
  fdUserID=new GridData();
  fdUserID.widthHint=150;
  wUserID.setLayoutData(fdUserID);
  wPlaceHolderLabel=new Label(textFieldPanel,SWT.RIGHT);
  wPlaceHolderLabel.setText("String_Node_Str");
  fdlPlaceHolderLabel=new GridData();
  fdlPlaceHolderLabel.widthHint=75;
  wlUserID.setLayoutData(fdlPlaceHolderLabel);
  wlPort=new Label(textFieldPanel,SWT.RIGHT);
  wlPort.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  fdlPort=new GridData();
  fdlPort.widthHint=75;
  wlPort.setLayoutData(fdlPort);
  wPort=new Text(textFieldPanel,SWT.SINGLE | SWT.LEFT | SWT.BORDER);
  fdPort=new GridData();
  fdPort.widthHint=150;
  wPort.setLayoutData(fdPort);
  wPort.addKeyListener(new KeyAdapter(){
    public void keyPressed(    KeyEvent e){
      handleConnectionButton();
    }
  }
);
  wlPassword=new Label(textFieldPanel,SWT.RIGHT);
  wlPassword.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  fdlPassword=new GridData();
  fdlPassword.widthHint=75;
  wlPassword.setLayoutData(fdlPassword);
  wPassword=new Text(textFieldPanel,SWT.SINGLE | SWT.LEFT | SWT.BORDER);
  wPassword.setEchoChar('*');
  fdPassword=new GridData();
  fdPassword.widthHint=150;
  wPassword.setLayoutData(fdPassword);
  wConnectionButton=new Button(textFieldPanel,SWT.CENTER);
  fdConnectionButton=new GridData();
  fdConnectionButton.widthHint=75;
  wConnectionButton.setLayoutData(fdConnectionButton);
  wConnectionButton.setText(BaseMessages.getString(PKG,"String_Node_Str"));
  wConnectionButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      try {
        Socket testHdfsSocket=new Socket(wUrl.getText(),Integer.parseInt(wPort.getText()));
        testHdfsSocket.getOutputStream();
        testHdfsSocket.close();
      }
 catch (      Throwable t) {
        showMessageAndLog(dialog,"String_Node_Str","String_Node_Str",t.getMessage());
        return;
      }
      openFileCombo.setText(buildHadoopFileSystemUrlString());
      resolveVfsBrowser();
    }
  }
);
  textFieldPanel.setTabList(new Control[]{wUrl,wPort,wUserID,wPassword,wConnectionButton});
}