Buggy code:
public class WeblogicDeploymentTool extends GenericDeploymentTool { 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" ; public static final String PUBLICID_WEBLOGIC_EJB510 = "-////BEA<seq2seq4repair_space>Systems,<seq2seq4repair_space>Inc.////DTD<seq2seq4repair_space>WebLogic<seq2seq4repair_space>5.1.0<seq2seq4repair_space>EJB////EN" ; public static final String PUBLICID_WEBLOGIC_EJB600 = "-////BEA<seq2seq4repair_space>Systems,<seq2seq4repair_space>Inc.////DTD<seq2seq4repair_space>WebLogic<seq2seq4repair_space>6.0.0<seq2seq4repair_space>EJB////EN" ; public static final String PUBLICID_WEBLOGIC_EJB700 = "-////BEA<seq2seq4repair_space>Systems,<seq2seq4repair_space>Inc.////DTD<seq2seq4repair_space>WebLogic<seq2seq4repair_space>7.0.0<seq2seq4repair_space>EJB////EN" ; protected static final String DEFAULT_WL51_EJB11_DTD_LOCATION = "//weblogic//ejb//deployment//xml//ejb-jar.dtd" ; protected static final String DEFAULT_WL60_EJB11_DTD_LOCATION = "//weblogic//ejb20//dd//xml//ejb11-jar.dtd" ; protected static final String DEFAULT_WL60_EJB20_DTD_LOCATION = "//weblogic//ejb20//dd//xml//ejb20-jar.dtd" ; protected static final String DEFAULT_WL51_DTD_LOCATION = "//weblogic//ejb//deployment//xml//weblogic-ejb-jar.dtd" ; protected static final String DEFAULT_WL60_51_DTD_LOCATION = "//weblogic//ejb20//dd//xml//weblogic510-ejb-jar.dtd" ; protected static final String DEFAULT_WL60_DTD_LOCATION = "//weblogic//ejb20//dd//xml//weblogic600-ejb-jar.dtd" ; protected static final String DEFAULT_WL70_DTD_LOCATION = "//weblogic//ejb20//dd//xml//weblogic700-ejb-jar.dtd" ; protected static final String DEFAULT_COMPILER = "default" ; protected static final String WL_DD = "weblogic-ejb-jar.xml" ; protected static final String WL_CMP_DD = "weblogic-cmp-rdbms-jar.xml" ; protected static final String COMPILER_EJB11 = "weblogic.ejbc" ; protected static final String COMPILER_EJB20 = "weblogic.ejbc20" ; private static final FileUtils FILE_UTILS = FileUtils . getFileUtils ( ) ; private String jarSuffix = ".jar" ; private String weblogicDTD ; private String ejb11DTD ; private boolean keepgenerated = false ; private String ejbcClass = null ; private String additionalArgs = "" ; private String additionalJvmArgs = "" ; private boolean keepGeneric = false ; private String compiler = null ; private boolean alwaysRebuild = true ; private boolean noEJBC = false ; private boolean newCMP = false ; private Path wlClasspath = null ; private Vector sysprops = new Vector ( ) ; private Integer jvmDebugLevel = null ; private File outputDir ; public void addSysproperty ( Environment . Variable sysp ) { } public Path createWLClasspath ( ) { } public void setOutputDir ( File outputDir ) { } public void setWLClasspath ( Path wlClasspath ) { } public void setCompiler ( String compiler ) { } public void setRebuild ( boolean rebuild ) { } public void setJvmDebugLevel ( Integer jvmDebugLevel ) { } public Integer getJvmDebugLevel ( ) { } public void setSuffix ( String inString ) { } public void setKeepgeneric ( boolean inValue ) { } public void setKeepgenerated ( String inValue ) { } public void setArgs ( String args ) { } public void setJvmargs ( String args ) { } public void setEjbcClass ( String ejbcClass ) { } public String getEjbcClass ( ) { } public void setWeblogicdtd ( String inString ) { } public void setWLdtd ( String inString ) { } public void setEJBdtd ( String inString ) { } public void setOldCMP ( boolean oldCMP ) { } public void setNewCMP ( boolean newCMP ) { } public void setNoEJBC ( boolean noEJBC ) { } protected void registerKnownDTDs ( DescriptorHandler handler ) { } protected DescriptorHandler getWeblogicDescriptorHandler ( final File srcDir ) { } protected void addVendorFiles ( Hashtable ejbFiles , String ddPrefix ) { } File getVendorOutputJarFile ( String baseName ) { } private void buildWeblogicJar ( File sourceJar , File destJar , String publicId ) { Java javaTask = null ; if ( noEJBC ) { try { WeblogicDeploymentTool . FILE_UTILS . copyFile ( sourceJar , destJar ) ; if ( ! ( keepgenerated ) ) { sourceJar . delete ( ) ; } return ; } catch ( IOException e ) { throw new BuildException ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>write<seq2seq4repair_space>EJB<seq2seq4repair_space>jar" , e ) ; } } String ejbcClassName = ejbcClass ; try { <START_BUG> javaTask = ( ( Java ) ( getTask ( ) . getProject ( ) . createTask ( "java" ) ) ) ; <END_BUG> javaTask . setTaskName ( "ejbc" ) ; javaTask . createJvmarg ( ) . setLine ( additionalJvmArgs ) ; if ( ! ( sysprops . isEmpty ( ) ) ) { for ( Enumeration en = sysprops . elements ( ) ; en . hasMoreElements ( ) ; ) { Environment . Variable entry = ( ( Environment . Variable ) ( en . nextElement ( ) ) ) ; javaTask . addSysproperty ( entry ) ; } } if ( ( getJvmDebugLevel ( ) ) != null ) { javaTask . createJvmarg ( ) . setLine ( ( "<seq2seq4repair_space>-Dweblogic.StdoutSeverityLevel=" + ( jvmDebugLevel ) ) ) ; } if ( ejbcClassName == null ) { if ( WeblogicDeploymentTool . PUBLICID_EJB11 . equals ( publicId ) ) { ejbcClassName = WeblogicDeploymentTool . COMPILER_EJB11 ; } else if ( WeblogicDeploymentTool . PUBLICID_EJB20 . equals ( publicId ) ) { ejbcClassName = WeblogicDeploymentTool . COMPILER_EJB20 ; } else { log ( ( ( "Unrecognized<seq2seq4repair_space>publicId<seq2seq4repair_space>" + publicId ) + "<seq2seq4repair_space>-<seq2seq4repair_space>using<seq2seq4repair_space>EJB<seq2seq4repair_space>1.1<seq2seq4repair_space>compiler" ) , MSG_WARN ) ; ejbcClassName = WeblogicDeploymentTool . COMPILER_EJB11 ; } } javaTask . setClassname ( ejbcClassName ) ; javaTask . createArg ( ) . setLine ( additionalArgs ) ; if ( keepgenerated ) { javaTask . createArg ( ) . setValue ( "-keepgenerated" ) ; } if ( ( compiler ) == null ) { String buildCompiler = getTask ( ) . getProject ( ) . getProperty ( "build.compiler" ) ; if ( ( buildCompiler != null ) && ( buildCompiler . equals ( "jikes" ) ) ) { javaTask . createArg ( ) . setValue ( "-compiler" ) ; javaTask . createArg ( ) . setValue ( "jikes" ) ; } } else { if ( ! ( compiler . equals ( WeblogicDeploymentTool . DEFAULT_COMPILER ) ) ) { javaTask . createArg ( ) . setValue ( "-compiler" ) ; javaTask . createArg ( ) . setLine ( compiler ) ; } } Path combinedClasspath = getCombinedClasspath ( ) ; if ( ( ( ( wlClasspath ) != null ) && ( combinedClasspath != null ) ) && ( ( combinedClasspath . toString ( ) . trim ( ) . length ( ) ) > 0 ) ) { javaTask . createArg ( ) . setValue ( "-classpath" ) ; javaTask . createArg ( ) . setPath ( combinedClasspath ) ; } javaTask . createArg ( ) . setValue ( sourceJar . getPath ( ) ) ;

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