Buggy code:
public class WebsphereDeploymentTool extends GenericDeploymentTool { public static class DBVendor extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public static final String PUBLICID_EJB11 = "-////Sun<seq2seq4repair_space>Microsystems,<seq2seq4repair_space>Inc.////DTD<seq2seq4repair_space>Enterprise<seq2seq4repair_space>JavaBeans<seq2seq4repair_space>1.1////EN" ; public static final String PUBLICID_EJB20 = "-////Sun<seq2seq4repair_space>Microsystems,<seq2seq4repair_space>Inc.////DTD<seq2seq4repair_space>Enterprise<seq2seq4repair_space>JavaBeans<seq2seq4repair_space>2.0////EN" ; protected static final String SCHEMA_DIR = "Schema//" ; protected static final String WAS_EXT = "ibm-ejb-jar-ext.xmi" ; protected static final String WAS_BND = "ibm-ejb-jar-bnd.xmi" ; protected static final String WAS_CMP_MAP = "Map.mapxmi" ; protected static final String WAS_CMP_SCHEMA = "Schema.dbxmi" ; private static final FileUtils FILE_UTILS = FileUtils . getFileUtils ( ) ; private String jarSuffix = ".jar" ; private String ejb11DTD ; private boolean keepGeneric = false ; private boolean alwaysRebuild = true ; private boolean ejbdeploy = true ; private boolean newCMP = false ; private Path wasClasspath = null ; private String dbVendor ; private String dbName ; private String dbSchema ; private boolean codegen ; private boolean quiet = true ; private boolean novalidate ; private boolean nowarn ; private boolean noinform ; private boolean trace ; private String rmicOptions ; private boolean use35MappingRules ; private String tempdir = "_ejbdeploy_temp" ; private File websphereHome ; public Path createWASClasspath ( ) { } public void setWASClasspath ( Path wasClasspath ) { } public void setDbvendor ( WebsphereDeploymentTool . DBVendor dbvendor ) { } public void setDbname ( String dbName ) { } public void setDbschema ( String dbSchema ) { } public void setCodegen ( boolean codegen ) { } public void setQuiet ( boolean quiet ) { } public void setNovalidate ( boolean novalidate ) { } public void setNowarn ( boolean nowarn ) { } public void setNoinform ( boolean noinform ) { } public void setTrace ( boolean trace ) { } public void setRmicoptions ( String options ) { } public void setUse35 ( boolean attr ) { } public void setRebuild ( boolean rebuild ) { } public void setSuffix ( String inString ) { } public void setKeepgeneric ( boolean inValue ) { } public void setEjbdeploy ( boolean ejbdeploy ) { } public void setEJBdtd ( String inString ) { } public void setOldCMP ( boolean oldCMP ) { } public void setNewCMP ( boolean newCMP ) { } public void setTempdir ( String tempdir ) { } protected DescriptorHandler getDescriptorHandler ( File srcDir ) { } protected DescriptorHandler getWebsphereDescriptorHandler ( final File srcDir ) { } protected void addVendorFiles ( Hashtable ejbFiles , String baseName ) { } File getVendorOutputJarFile ( String baseName ) { } protected String getOptions ( ) { } private void buildWebsphereJar ( File sourceJar , File destJar ) { try { if ( ejbdeploy ) { <START_BUG> Java javaTask = ( ( Java ) ( getTask ( ) . getProject ( ) . createTask ( "java" ) ) ) ; <END_BUG> javaTask . createJvmarg ( ) . setValue ( "-Xms64m" ) ; javaTask . createJvmarg ( ) . setValue ( "-Xmx128m" ) ; Environment . Variable var = new Environment . Variable ( ) ; var . setKey ( "websphere.lib.dir" ) ; File libdir = new File ( websphereHome , "lib" ) ; var . setValue ( libdir . getAbsolutePath ( ) ) ; javaTask . addSysproperty ( var ) ; javaTask . setDir ( websphereHome ) ; javaTask . setTaskName ( "ejbdeploy" ) ; javaTask . setClassname ( "com.ibm.etools.ejbdeploy.EJBDeploy" ) ; javaTask . createArg ( ) . setValue ( sourceJar . getPath ( ) ) ; javaTask . createArg ( ) . setValue ( tempdir ) ; javaTask . createArg ( ) . setValue ( destJar . getPath ( ) ) ; javaTask . createArg ( ) . setLine ( getOptions ( ) ) ; if ( ( ( getCombinedClasspath ( ) ) != null ) && ( ( getCombinedClasspath ( ) . toString ( ) . length ( ) ) > 0 ) ) { javaTask . createArg ( ) . setValue ( "-cp" ) ; javaTask . createArg ( ) . setValue ( getCombinedClasspath ( ) . toString ( ) ) ; } Path classpath = wasClasspath ; if ( classpath == null ) { classpath = getCombinedClasspath ( ) ; } if ( classpath != null ) { javaTask . setClasspath ( classpath ) ; javaTask . setFork ( true ) ; } else { javaTask . setFork ( true ) ; } log ( ( "Calling<seq2seq4repair_space>websphere.ejbdeploy<seq2seq4repair_space>for<seq2seq4repair_space>" + ( sourceJar . toString ( ) ) ) , MSG_VERBOSE ) ; javaTask . execute ( ) ; } } catch ( Exception e ) { String msg = "Exception<seq2seq4repair_space>while<seq2seq4repair_space>calling<seq2seq4repair_space>ejbdeploy.<seq2seq4repair_space>Details:<seq2seq4repair_space>" + ( e . toString ( ) ) ; throw new BuildException ( msg , e ) ; } } protected void writeJar ( String baseName , File jarFile , Hashtable files , String publicId ) throws BuildException { } public void validateConfigured ( ) throws BuildException { } protected boolean isRebuildRequired ( File genericJarFile , File websphereJarFile ) { } protected ClassLoader getClassLoaderFromJar ( File classjar ) throws IOException { } }

Fix:
Java javaTask = new Java ( getTask ( ) ) ;