Buggy code:
public class GenericDeploymentTool implements EJBDeploymentTool { protected static final String META_DIR = "META-INF//" ; protected static final String EJB_DD = "ejb-jar.xml" ; private File srcDir ; private File descriptorDir ; private File destDir ; private String baseJarName ; private Path classpath ; private boolean flatDestDir = false ; private String baseNameTerminator = "-" ; private String genericJarSuffix = "-generic.jar" ; private Task task ; private ClassLoader classpathLoader = null ; private List addedfiles ; public void setDestdir ( File inDir ) { } protected File getDestDir ( ) { } public void setTask ( Task task ) { } protected Task getTask ( ) { } protected String getBaseNameTerminator ( ) { } protected String getBaseJarName ( ) { } protected File getSrcDir ( ) { } protected File getDescriptorDir ( ) { } protected boolean usingBaseJarName ( ) { } public void setGenericJarSuffix ( String inString ) { } public Path createClasspath ( ) { } public void setClasspath ( Path classpath ) { } protected Path getClasspath ( ) { } protected void log ( String message , int level ) { } public void configure ( File srcDir , File descriptorDir , String baseNameTerminator , String baseJarName , boolean flatDestDir , Path classpath ) { } protected void addFileToJar ( JarOutputStream jStream , File inputFile , String logicalFilename ) throws BuildException { } protected DescriptorHandler getDescriptorHandler ( File srcDir ) { } public void processDescriptor ( String descriptorFileName , SAXParser saxParser ) { FileInputStream descriptorStream = null ; try { DescriptorHandler handler = getDescriptorHandler ( srcDir ) ; descriptorStream = new FileInputStream ( new File ( getDescriptorDir ( ) , descriptorFileName ) ) ; saxParser . parse ( new InputSource ( descriptorStream ) , handler ) ; Hashtable ejbFiles = handler . getFiles ( ) ; String baseName = "" ; if ( ( baseJarName ) != null ) { baseName = baseJarName ; } else { int lastSeparatorIndex = descriptorFileName . lastIndexOf ( File . separator ) ; int endBaseName = - 1 ; if ( lastSeparatorIndex != ( - 1 ) ) { endBaseName = descriptorFileName . indexOf ( baseNameTerminator , lastSeparatorIndex ) ; } else { endBaseName = descriptorFileName . indexOf ( baseNameTerminator ) ; } if ( endBaseName != ( - 1 ) ) { baseName = descriptorFileName . substring ( 0 , endBaseName ) ; } baseName = descriptorFileName . substring ( 0 , endBaseName ) ; } ejbFiles . put ( ( ( GenericDeploymentTool . META_DIR ) + ( GenericDeploymentTool . EJB_DD ) ) , new File ( getDescriptorDir ( ) , descriptorFileName ) ) ; addVendorFiles ( ejbFiles , baseName ) ; checkAndAddInherited ( ejbFiles ) ; if ( ( flatDestDir ) && ( ( baseName . length ( ) ) != 0 ) ) { int startName = baseName . lastIndexOf ( File . separator ) ; if ( startName == ( - 1 ) ) { startName = 0 ; } int endName = baseName . length ( ) ; baseName = baseName . substring ( startName , endName ) ; } File jarFile = getVendorOutputJarFile ( baseName ) ; boolean needBuild = true ; if ( jarFile . exists ( ) ) { long lastBuild = jarFile . lastModified ( ) ; Iterator fileIter = ejbFiles . values ( ) . iterator ( ) ; needBuild = false ; while ( ( needBuild == false ) && ( fileIter . hasNext ( ) ) ) { File currentFile = ( ( File ) ( fileIter . next ( ) ) ) ; needBuild = lastBuild < ( currentFile . lastModified ( ) ) ; if ( needBuild ) { log ( ( ( "Build<seq2seq4repair_space>needed<seq2seq4repair_space>because<seq2seq4repair_space>" + ( currentFile . getPath ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>date" ) , MSG_VERBOSE ) ; } } } if ( needBuild ) { log ( ( ( ( ( "building<seq2seq4repair_space>" + ( jarFile . getName ( ) ) ) + "<seq2seq4repair_space>with<seq2seq4repair_space>" ) + ( String . valueOf ( ejbFiles . size ( ) ) ) ) + "<seq2seq4repair_space>files" ) , MSG_INFO ) ; writeJar ( baseName , jarFile , ejbFiles ) ; } else { <START_BUG> log ( ( ( jarFile . toString ( ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>up<seq2seq4repair_space>to<seq2seq4repair_space>date." ) , MSG_INFO ) ; <END_BUG> } } catch ( SAXException se ) { String msg = ( ( ( "SAXException<seq2seq4repair_space>while<seq2seq4repair_space>parsing<seq2seq4repair_space>'" + ( descriptorFileName . toString ( ) ) ) + "'.<seq2seq4repair_space>This<seq2seq4repair_space>probably<seq2seq4repair_space>indicates<seq2seq4repair_space>badly-formed<seq2seq4repair_space>XML." ) + "<seq2seq4repair_space>Details:<seq2seq4repair_space>" ) + ( se . getMessage ( ) ) ; throw new BuildException ( msg , se ) ; } catch ( IOException ioe ) { String msg = ( ( ( "IOException<seq2seq4repair_space>while<seq2seq4repair_space>parsing'" + ( descriptorFileName . toString ( ) ) ) + "'.<seq2seq4repair_space>This<seq2seq4repair_space>probably<seq2seq4repair_space>indicates<seq2seq4repair_space>that<seq2seq4repair_space>the<seq2seq4repair_space>descriptor" ) + "<seq2seq4repair_space>doesn't<seq2seq4repair_space>exist.<seq2seq4repair_space>Details:<seq2seq4repair_space>" ) + ( ioe . getMessage ( ) ) ; throw new BuildException ( msg , ioe ) ; } finally { if ( descriptorStream != null ) { try { descriptorStream . close ( ) ; } catch ( IOException closeException ) { } } } } protected void addVendorFiles ( Hashtable ejbFiles , String baseName ) { } File getVendorOutputJarFile ( String baseName ) { } protected void writeJar ( String baseName , File jarfile , Hashtable files ) throws BuildException { } protected void checkAndAddInherited ( Hashtable checkEntries ) throws BuildException { } private void addInterface ( Class theInterface , Hashtable checkEntries ) { } private void addSuperClass ( Class superClass , Hashtable checkEntries ) { } protected ClassLoader getClassLoaderForBuild ( ) { } public void validateConfigured ( ) throws BuildException { } }

Fix:
log ( ( ( jarFile . toString ( ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>up<seq2seq4repair_space>to<seq2seq4repair_space>date." ) , MSG_VERBOSE ) ;