Buggy code:
public class Main implements AntMain { private static final Set LAUNCH_COMMANDS = new HashSet ( ) ; public static final String DEFAULT_BUILD_FILENAME = "build.xml" ; private int msgOutputLevel = Project . MSG_INFO ; private File buildFile ; private static PrintStream out = System . out ; private static PrintStream err = System . err ; private Vector targets = new Vector ( ) ; private Properties definedProps = new Properties ( ) ; private Vector listeners = new Vector ( 1 ) ; private Vector propertyFiles = new Vector ( 1 ) ; private boolean allowInput = true ; private boolean keepGoingMode = false ; private String loggerClassname = null ; private String inputHandlerClassname = null ; private boolean emacsMode = false ; private boolean readyToRun = false ; private boolean projectHelp = false ; private static boolean isLogFileUsed = false ; private Integer threadPriority = null ; private boolean proxy = false ; private static void printMessage ( Throwable t ) { } public static void start ( String [ ] args , Properties additionalUserProperties , ClassLoader coreLoader ) { } public void startAnt ( String [ ] args , Properties additionalUserProperties , ClassLoader coreLoader ) { } protected void exit ( int exitCode ) { } private static void handleLogfile ( ) { } public static void main ( String [ ] args ) { } public Main ( ) { } protected Main ( String [ ] args ) throws BuildException { } private void processArgs ( String [ ] args ) { } private int handleArgBuildFile ( String [ ] args , int pos ) { } private int handleArgListener ( String [ ] args , int pos ) { } private int handleArgDefine ( String [ ] args , int argPos ) { } private int handleArgLogger ( String [ ] args , int pos ) { } private int handleArgInputHandler ( String [ ] args , int pos ) { } private int handleArgPropertyFile ( String [ ] args , int pos ) { } private int handleArgNice ( String [ ] args , int pos ) { } private void loadPropertyFiles ( ) { } private File getParentFile ( File file ) { } private File findBuildFile ( String start , String suffix ) { } private void runBuild ( ClassLoader coreLoader ) throws BuildException { } protected void addBuildListeners ( Project project ) { } private void addInputHandler ( Project project ) throws BuildException { } private BuildLogger createLogger ( ) { } private static void printUsage ( ) { } private static void printVersion ( int logLevel ) throws BuildException { } private static String antVersion = null ; public static synchronized String getAntVersion ( ) throws BuildException { } private static void printDescription ( Project project ) { } private static Map removeDuplicateTargets ( Map targets ) { } private static void printTargets ( Project project , boolean printSubTargets , boolean printDependencies ) { } private static int findTargetPosition ( Vector names , String name ) { } private static void printTargets ( Project project , Vector names , Vector descriptions , Vector dependencies , String heading , int maxlen ) { String lSep = System . getProperty ( "line.separator" ) ; String spaces = "<seq2seq4repair_space>" ; while ( ( spaces . length ( ) ) <= maxlen ) { spaces += spaces ; } StringBuffer msg = new StringBuffer ( ) ; msg . append ( ( ( heading + lSep ) + lSep ) ) ; for ( int i = 0 ; i < ( names . size ( ) ) ; i ++ ) { msg . append ( "<seq2seq4repair_space>" ) ; msg . append ( names . elementAt ( i ) ) ; if ( descriptions != null ) { msg . append ( spaces . substring ( 0 , ( ( maxlen - ( ( ( String ) ( names . elementAt ( i ) ) ) . length ( ) ) ) + 2 ) ) ) ; msg . append ( descriptions . elementAt ( i ) ) ; } msg . append ( lSep ) ; if ( ! ( dependencies . isEmpty ( ) ) ) { Enumeration deps = ( ( Enumeration ) ( dependencies . elementAt ( i ) ) ) ; if ( deps . hasMoreElements ( ) ) { <START_BUG> msg . append ( "<seq2seq4repair_space>depends<seq2seq4repair_space>of:<seq2seq4repair_space>" ) ; <END_BUG> while ( deps . hasMoreElements ( ) ) { msg . append ( deps . nextElement ( ) ) ; if ( deps . hasMoreElements ( ) ) { msg . append ( ",<seq2seq4repair_space>" ) ; } } msg . append ( lSep ) ; } } } project . log ( msg . toString ( ) , MSG_WARN ) ; } }

Fix:
msg . append ( "<seq2seq4repair_space>depends<seq2seq4repair_space>on:<seq2seq4repair_space>" ) ;