Buggy code:
cmd . createArgument ( ) . setValue ( bootclasspath . toString ( ) ) ; } if ( ( links . size ( ) ) != 0 ) { for ( Enumeration e = links . elements ( ) ; e . hasMoreElements ( ) ; ) { Javadoc . LinkArgument la = ( ( Javadoc . LinkArgument ) ( e . nextElement ( ) ) ) ; if ( ( la . getHref ( ) ) == null ) { throw new BuildException ( "Links<seq2seq4repair_space>must<seq2seq4repair_space>provide<seq2seq4repair_space>the<seq2seq4repair_space>RUL<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>external<seq2seq4repair_space>class<seq2seq4repair_space>documentation." ) ; } if ( la . isLinkOffline ( ) ) { String packageListLocation = la . getPackagelistLoc ( ) ; if ( packageListLocation == null ) { throw new BuildException ( ( ( "The<seq2seq4repair_space>package<seq2seq4repair_space>list<seq2seq4repair_space>location<seq2seq4repair_space>for<seq2seq4repair_space>link<seq2seq4repair_space>" + ( la . getHref ( ) ) ) + "<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>provided<seq2seq4repair_space>because<seq2seq4repair_space>the<seq2seq4repair_space>link<seq2seq4repair_space>is<seq2seq4repair_space>offline" ) ) ; } cmd . createArgument ( ) . setValue ( "-linkoffline" ) ; cmd . createArgument ( ) . setValue ( la . getHref ( ) ) ; cmd . createArgument ( ) . setValue ( packageListLocation ) ; } else { cmd . createArgument ( ) . setValue ( "-link" ) ; cmd . createArgument ( ) . setValue ( la . getHref ( ) ) ; } } } if ( ( group ) != null ) { StringTokenizer tok = new StringTokenizer ( group , "," , false ) ; while ( tok . hasMoreTokens ( ) ) { String grp = tok . nextToken ( ) . trim ( ) ; int space = grp . indexOf ( "<seq2seq4repair_space>" ) ; if ( space > 0 ) { String name = grp . substring ( 0 , space ) ; String pkgList = grp . substring ( ( space + 1 ) ) ; cmd . createArgument ( ) . setValue ( "-group" ) ; cmd . createArgument ( ) . setValue ( name ) ; cmd . createArgument ( ) . setValue ( pkgList ) ; } } } if ( ( groups . size ( ) ) != 0 ) { for ( Enumeration e = groups . elements ( ) ; e . hasMoreElements ( ) ; ) { Javadoc . GroupArgument ga = ( ( Javadoc . GroupArgument ) ( e . nextElement ( ) ) ) ; String title = ga . getTitle ( ) ; String packages = ga . getPackages ( ) ; if ( ( title == null ) || ( packages == null ) ) { throw new BuildException ( "The<seq2seq4repair_space>title<seq2seq4repair_space>and<seq2seq4repair_space>packages<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>specified<seq2seq4repair_space>for<seq2seq4repair_space>group<seq2seq4repair_space>elements." ) ; } cmd . createArgument ( ) . setValue ( "-group" ) ; cmd . createArgument ( ) . setValue ( title ) ; cmd . createArgument ( ) . setValue ( packages ) ; } } } if ( ( ( packageNames ) != null ) && ( ( packageNames . length ( ) ) > 0 ) ) { Vector packages = new Vector ( ) ; StringTokenizer tok = new StringTokenizer ( packageNames , "," , false ) ; while ( tok . hasMoreTokens ( ) ) { String name = tok . nextToken ( ) . trim ( ) ; if ( name . endsWith ( ".*" ) ) { packages . addElement ( name ) ; } else { cmd . createArgument ( ) . setValue ( name ) ; } } if ( ( packages . size ( ) ) > 0 ) { evaluatePackages ( sourcePath , packages ) ; } } if ( ( ( sourceFiles ) != null ) && ( ( sourceFiles . length ( ) ) > 0 ) ) { StringTokenizer tok = new StringTokenizer ( sourceFiles , "," , false ) ; while ( tok . hasMoreTokens ( ) ) { cmd . createArgument ( ) . setValue ( tok . nextToken ( ) . trim ( ) ) ; } } if ( ( packageList ) != null ) { cmd . createArgument ( ) . setValue ( ( "@" + ( packageList ) ) ) ; } log ( ( "Javadoc<seq2seq4repair_space>args:<seq2seq4repair_space>" + ( cmd . getArguments ( ) ) ) , MSG_VERBOSE ) ; log ( "Javadoc<seq2seq4repair_space>execution" , MSG_INFO ) ; Javadoc . JavadocOutputStream out = new Javadoc . JavadocOutputStream ( Project . MSG_INFO ) ; Javadoc . JavadocOutputStream err = new Javadoc . JavadocOutputStream ( Project . MSG_WARN ) ; Execute exe = new Execute ( new PumpStreamHandler ( out , err ) ) ; exe . setAntRun ( project ) ; exe . setWorkingDirectory ( project . getBaseDir ( ) ) ; try { exe . setCommandline ( cmd . getCommandline ( ) ) ; exe . execute ( ) ; } catch ( IOException e ) { <START_BUG> throw new BuildException ( ( "Execute<seq2seq4repair_space>failed:<seq2seq4repair_space>" + e ) , e , location ) ; <END_BUG> } finally { out . logFlush ( ) ; err . logFlush ( ) ; try { out . close ( ) ; err . close ( ) ; } catch ( IOException e ) { } } } private void evaluatePackages ( Path sourcePath , Vector packages ) { } private boolean matches ( String string , String pattern ) { } private Hashtable mapClasses ( File path ) { } private void getFiles ( File path , Vector list ) { } private String getPackageName ( File file ) { } private class JavadocOutputStream extends LogOutputStream { JavadocOutputStream ( int level ) { } private String queuedLine = null ; protected void processLine ( String line , int messageLevel ) { } protected void logFlush ( ) { } } class JavaReader extends FilterReader { public JavaReader ( Reader in ) { } public int read ( ) throws IOException { } public int read ( char [ ] cbuf , int off , int len ) throws IOException { } public long skip ( long n ) throws IOException { } } }

Fix:
throw new BuildException ( ( "Javadoc<seq2seq4repair_space>failed:<seq2seq4repair_space>" + e ) , e , location ) ;