Buggy code:
public class MailLogger extends DefaultLogger { private StringBuffer buffer = new StringBuffer ( ) ; private static final String DEFAULT_MIME_TYPE = "text//plain" ; public void buildFinished ( BuildEvent event ) { } private static class Values { private String mailhost ; public String mailhost ( ) { } public MailLogger . Values mailhost ( String mailhost ) { } private int port ; public int port ( ) { } public MailLogger . Values port ( int port ) { } private String user ; public String user ( ) { } public MailLogger . Values user ( String user ) { } private String password ; public String password ( ) { } public MailLogger . Values password ( String password ) { } private boolean ssl ; public boolean ssl ( ) { } public MailLogger . Values ssl ( boolean ssl ) { } private String from ; public String from ( ) { } public MailLogger . Values from ( String from ) { } private String replytoList ; public String replytoList ( ) { } public MailLogger . Values replytoList ( String replytoList ) { } private String toList ; public String toList ( ) { } public MailLogger . Values toList ( String toList ) { } private String subject ; public String subject ( ) { } public MailLogger . Values subject ( String subject ) { } private String charset ; public String charset ( ) { } public MailLogger . Values charset ( String charset ) { } private String mimeType ; public String mimeType ( ) { } public MailLogger . Values mimeType ( String mimeType ) { } private String body ; public String body ( ) { } public MailLogger . Values body ( String body ) { } private boolean starttls ; public boolean starttls ( ) { } public MailLogger . Values starttls ( boolean starttls ) { } } protected void log ( String message ) { } private String getValue ( Hashtable properties , String name , String defaultValue ) throws Exception { } private void sendMail ( MailLogger . Values values , String message ) throws IOException { } private void sendMimeMail ( Project project , MailLogger . Values values , String message ) { Mailer mailer = null ; try { mailer = ( ( Mailer ) ( ClasspathUtils . newInstance ( "org.apache.tools.ant.taskdefs.email.MimeMailer" , MailLogger . class . getClassLoader ( ) , Mailer . class ) ) ) ; } catch ( BuildException e ) { Throwable t = ( ( e . getCause ( ) ) == null ) ? e : e . getCause ( ) ; log ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>initialise<seq2seq4repair_space>MIME<seq2seq4repair_space>mail:<seq2seq4repair_space>" + ( t . getMessage ( ) ) ) ) ; return ; } Vector replyToList = vectorizeEmailAddresses ( values . replytoList ( ) ) ; mailer . setHost ( values . mailhost ( ) ) ; mailer . setPort ( values . port ( ) ) ; mailer . setUser ( values . user ( ) ) ; mailer . setPassword ( values . password ( ) ) ; mailer . setSSL ( values . ssl ( ) ) ; <START_BUG> mailer . setEnableStartTLS ( values . ssl ( ) ) ; <END_BUG> Message mymessage = new Message ( ( ( values . body ( ) . length ( ) ) > 0 ? values . body ( ) : message ) ) ; mymessage . setProject ( project ) ; mymessage . setMimeType ( values . mimeType ( ) ) ; if ( ( values . charset ( ) . length ( ) ) > 0 ) { mymessage . setCharset ( values . charset ( ) ) ; } mailer . setMessage ( mymessage ) ; mailer . setFrom ( new EmailAddress ( values . from ( ) ) ) ; mailer . setReplyToList ( replyToList ) ; Vector toList = vectorizeEmailAddresses ( values . toList ( ) ) ; mailer . setToList ( toList ) ; mailer . setCcList ( new Vector ( ) ) ; mailer . setBccList ( new Vector ( ) ) ; mailer . setFiles ( new Vector ( ) ) ; mailer . setSubject ( values . subject ( ) ) ; mailer . setHeaders ( new Vector ( ) ) ; mailer . send ( ) ; } private Vector vectorizeEmailAddresses ( String listString ) { } }

Fix:
mailer . setEnableStartTLS ( values . starttls ( ) ) ;