Buggy code:
public class SendEmail extends Task { private String mailhost = "localhost" ; private int mailport = MailMessage . DEFAULT_PORT ; private Vector files = new Vector ( ) ; private boolean failOnError = true ; private String from ; private boolean includefilenames ; private String message ; private String subject ; private String toList ; public SendEmail ( ) { } public void setFailOnError ( boolean failOnError ) { } public void setFiles ( String filenames ) throws TaskException { } public void setFrom ( String from ) { } public void setIncludefilenames ( boolean includefilenames ) { } public void setMailhost ( String mailhost ) { } public void setMailport ( Integer value ) { } public void setMessage ( String message ) { } public void setSubject ( String subject ) { } public void setToList ( String toList ) { } public void execute ( ) throws TaskException { try { MailMessage mailMessage = new MailMessage ( mailhost ) ; mailMessage . setPort ( mailport ) ; if ( ( from ) != null ) { mailMessage . from ( from ) ; } else { throw new TaskException ( "Attribute<seq2seq4repair_space>\"from\"<seq2seq4repair_space>is<seq2seq4repair_space>required." ) ; } if ( ( toList ) != null ) { StringTokenizer t = new StringTokenizer ( toList , ",<seq2seq4repair_space>" , false ) ; while ( t . hasMoreTokens ( ) ) { mailMessage . to ( t . nextToken ( ) ) ; } } else { throw new TaskException ( "Attribute<seq2seq4repair_space>\"toList\"<seq2seq4repair_space>is<seq2seq4repair_space>required." ) ; } if ( ( subject ) != null ) { mailMessage . setSubject ( subject ) ; } if ( ! ( files . isEmpty ( ) ) ) { PrintStream out = mailMessage . getPrintStream ( ) ; for ( Enumeration e = files . elements ( ) ; e . hasMoreElements ( ) ; ) { File file = ( ( File ) ( e . nextElement ( ) ) ) ; if ( ( file . exists ( ) ) && ( file . canRead ( ) ) ) { int bufsize = 1024 ; int length ; byte [ ] buf = new byte [ bufsize ] ; if ( includefilenames ) { String filename = file . getName ( ) ; int filenamelength = filename . length ( ) ; out . println ( filename ) ; for ( int star = 0 ; star < filenamelength ; star ++ ) { out . print ( '=' ) ; } out . println ( ) ; } BufferedInputStream in = null ; try { in = new BufferedInputStream ( new FileInputStream ( file ) , bufsize ) ; while ( ( length = in . read ( buf , 0 , bufsize ) ) != ( - 1 ) ) { out . write ( buf , 0 , length ) ; } if ( includefilenames ) { out . println ( ) ; } } finally { if ( in != null ) { try { in . close ( ) ; } catch ( IOException ioe ) { } } } } else { throw new TaskException ( ( ( "File<seq2seq4repair_space>\"" + ( file . getName ( ) ) ) + "\"<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist<seq2seq4repair_space>or<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>readable." ) ) ; } } } else if ( ( message ) != null ) { PrintStream out = mailMessage . getPrintStream ( ) ; out . print ( message ) ; } else { throw new TaskException ( "Attribute<seq2seq4repair_space>\"file\"<seq2seq4repair_space>or<seq2seq4repair_space>\"message\"<seq2seq4repair_space>is<seq2seq4repair_space>required." ) ; } <START_BUG> log ( "Sending<seq2seq4repair_space>email" ) ; <END_BUG> mailMessage . sendAndClose ( ) ; } catch ( IOException ioe ) { String err = "IO<seq2seq4repair_space>error<seq2seq4repair_space>sending<seq2seq4repair_space>mail<seq2seq4repair_space>" + ( ioe . toString ( ) ) ; if ( failOnError ) { throw new TaskException ( err , ioe ) ; } else { log ( err , MSG_ERR ) ; } } } }

Fix:
getLogger ( ) . info ( "Sending<seq2seq4repair_space>email" ) ;