Program: 103169
Project: 103169
Buggy source:
/** 
 * Creates the ZRTP sas panel.
 * @return the created ZRTP SAS panel
 */
private JPanel createSasPanel(){
  sasVerified=getSecurityControl().isSecurityVerified();
  TransparentPanel sasPanel=new TransparentPanel(){
    public void paintComponent(    Graphics g){
      g=g.create();
      try {
        AntialiasingManager.activateAntialiasing(g);
        g.setColor(new Color(1f,1f,1f,0.1f));
        g.fillRoundRect(0,0,this.getWidth(),this.getHeight(),10,10);
        g.setColor(Color.WHITE);
        g.drawRoundRect(0,0,this.getWidth() - 1,this.getHeight() - 1,10,10);
      }
  finally {
        g.dispose();
      }
    }
  }
;
  sasPanel.setLayout(new BoxLayout(sasPanel,BoxLayout.Y_AXIS));
  initSasLabels();
  SIPCommButton infoButton=new SIPCommButton(ImageLoader.getImage(ImageLoader.CALL_INFO));
  infoButton.setToolTipText(GuiActivator.getResources().getI18NString("String_Node_Str"));
  compareLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
  JPanel stringPanel=new TransparentPanel(new FlowLayout(FlowLayout.CENTER,5,0));
  stringPanel.add(compareLabel);
  stringPanel.add(infoButton);
  initZidNameButton();
  stringPanel.add(zidNameButton);
  sasPanel.add(stringPanel);
  securityStringLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
  sasPanel.add(securityStringLabel);
  confirmButton.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      if (getSecurityControl() != null) {
        getSecurityControl().setSASVerification(!sasVerified);
        sasVerified=!sasVerified;
        securityStringLabel.setIcon(sasVerified ? encryptionVerifiedIcon : null);
        if (sasVerified)         peerRenderer.securityOn(null);
 else         peerRenderer.securityPending();
        initSasLabels();
      }
    }
  }
);
  confirmButton.setAlignmentX(Component.CENTER_ALIGNMENT);
  sasPanel.add(confirmButton);
  return sasPanel;
}

Fixed version (ground truth):
/** 
 * Creates the ZRTP sas panel.
 * @return the created ZRTP SAS panel
 */
private JPanel createSasPanel(){
  sasVerified=getSecurityControl().isSecurityVerified();
  TransparentPanel sasPanel=new TransparentPanel(){
    @Override public void paintComponent(    Graphics g){
      g=g.create();
      try {
        AntialiasingManager.activateAntialiasing(g);
        g.setColor(new Color(1f,1f,1f,0.1f));
        g.fillRoundRect(0,0,this.getWidth(),this.getHeight(),10,10);
        g.setColor(Color.WHITE);
        g.drawRoundRect(0,0,this.getWidth() - 1,this.getHeight() - 1,10,10);
      }
  finally {
        g.dispose();
      }
    }
  }
;
  sasPanel.setLayout(new BoxLayout(sasPanel,BoxLayout.Y_AXIS));
  initSasLabels();
  SIPCommButton infoButton=new SIPCommButton(ImageLoader.getImage(ImageLoader.CALL_INFO));
  infoButton.setToolTipText(GuiActivator.getResources().getI18NString("String_Node_Str"));
  compareLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
  JPanel stringPanel=new TransparentPanel(new FlowLayout(FlowLayout.CENTER,5,0));
  stringPanel.add(compareLabel);
  stringPanel.add(infoButton);
  initZidNameButton();
  stringPanel.add(zidNameButton);
  sasPanel.add(stringPanel);
  securityStringLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
  sasPanel.add(securityStringLabel);
  confirmButton.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent e){
      if (getSecurityControl() != null) {
        getSecurityControl().setSASVerification(!sasVerified);
        sasVerified=!sasVerified;
        securityStringLabel.setIcon(sasVerified ? encryptionVerifiedIcon : null);
        if (sasVerified)         peerRenderer.securityOn(null);
 else         peerRenderer.securityPending();
        initSasLabels();
      }
    }
  }
);
  confirmButton.setAlignmentX(Component.CENTER_ALIGNMENT);
  sasPanel.add(confirmButton);
  return sasPanel;
}