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 { if ( ( Main . antVersion ) == null ) { try { Properties props = new Properties ( ) ; InputStream in = Main . class . getResourceAsStream ( "//org//apache//tools//ant//version.txt" ) ; props . load ( in ) ; in . close ( ) ; StringBuffer msg = new StringBuffer ( ) ; <START_BUG> msg . append ( "Apache<seq2seq4repair_space>Ant<seq2seq4repair_space>version<seq2seq4repair_space>" ) ; <END_BUG> msg . append ( props . getProperty ( "VERSION" ) ) ; msg . append ( "<seq2seq4repair_space>compiled<seq2seq4repair_space>on<seq2seq4repair_space>" ) ; msg . append ( props . getProperty ( "DATE" ) ) ; Main . antVersion = msg . toString ( ) ; } catch ( IOException ioe ) { throw new BuildException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>load<seq2seq4repair_space>the<seq2seq4repair_space>version<seq2seq4repair_space>information:" + ( ioe . getMessage ( ) ) ) ) ; } catch ( NullPointerException npe ) { throw new BuildException ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>load<seq2seq4repair_space>the<seq2seq4repair_space>version<seq2seq4repair_space>information." ) ; } } return Main . antVersion ; } 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 ) { } }

Fix:
msg . append ( "Apache<seq2seq4repair_space>Ant(TM)<seq2seq4repair_space>version<seq2seq4repair_space>" ) ;