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 String jarSuffix = ".jar" ; private String ejb11DTD ; private boolean keepgenerated = false ; private String additionalArgs = "" ; private boolean keepGeneric = false ; private String compiler = null ; 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" ; 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 noinfom ) { } public void setTrace ( boolean trace ) { } public void setRmicoptions ( String options ) { } public void setUse35 ( boolean attr ) { } public void setCompiler ( String compiler ) { } public void setRebuild ( boolean rebuild ) { } public void setSuffix ( String inString ) { } public void setKeepgeneric ( boolean inValue ) { } public void setKeepgenerated ( String inValue ) { } public void setEjbdeploy ( boolean ejbdeploy ) { } public void setArgs ( String args ) { } 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 ) { } 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 { Path lookupPath = new Path ( getTask ( ) . getProject ( ) ) ; lookupPath . setLocation ( classjar ) ; Path classpath = getCombinedClasspath ( ) ; if ( classpath != null ) { lookupPath . append ( classpath ) ; } <START_BUG> return new org . apache . tools . ant . AntClassLoader ( getTask ( ) . getProject ( ) , lookupPath ) ; <END_BUG> } }

Fix:
return getTask ( ) . getProject ( ) . createClassLoader ( lookupPath ) ;