Buggy code:
public class WsdlToDotnet extends Task { private static final FileUtils FILE_UTILS = FileUtils . getFileUtils ( ) ; private File destFile = null ; private String language = "CS" ; private boolean server = false ; private String namespace = null ; private boolean failOnError = true ; protected String extraOptions = null ; private String protocol = null ; private boolean ideErrors = false ; private Vector schemas = new Vector ( ) ; private WsdlToDotnet . Schema wsdl = new WsdlToDotnet . Schema ( ) ; private WsdlToDotnet . Compiler compiler = null ; public static final String ERROR_DEST_FILE_IS_DIR = "destination<seq2seq4repair_space>file<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>directory" ; public static final String ERROR_NO_DEST_FILE = "destination<seq2seq4repair_space>file<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>specified" ; public void setDestFile ( File destFile ) { } public void setUrl ( String url ) { } public void setSrcFile ( File srcFile ) { } public void setLanguage ( String language ) { } public void setServer ( boolean server ) { } public void setNamespace ( String namespace ) { } public void setFailOnError ( boolean failOnError ) { } public void setExtraOptions ( String extraOptions ) { } public void setIdeErrors ( boolean ideErrors ) { } public void setProtocol ( String protocol ) { } public void addSchema ( WsdlToDotnet . Schema source ) { } public void setMakeURL ( boolean b ) { } public void setCompiler ( WsdlToDotnet . Compiler compiler ) { } protected void validate ( ) throws BuildException { } public void execute ( ) throws BuildException { } private boolean isRebuildNeeded ( WsdlToDotnet . Schema schema , long destLastModified ) { } public static class Schema { private File file ; private String url ; private boolean makeURL = false ; public static final String ERROR_NONE_DECLARED = "One<seq2seq4repair_space>of<seq2seq4repair_space>file<seq2seq4repair_space>and<seq2seq4repair_space>url<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set" ; public static final String ERROR_BOTH_DECLARED = "Only<seq2seq4repair_space>one<seq2seq4repair_space>of<seq2seq4repair_space>file<seq2seq4repair_space>or<seq2seq4repair_space>url<seq2seq4repair_space>can<seq2seq4repair_space>be<seq2seq4repair_space>set" ; public static final String ERROR_FILE_NOT_FOUND = "Not<seq2seq4repair_space>found:<seq2seq4repair_space>" ; public static final String ERROR_FILE_IS_DIR = "File<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>directory:<seq2seq4repair_space>" ; public static final String ERROR_NO_URL_CONVERT = "Could<seq2seq4repair_space>not<seq2seq4repair_space>URL<seq2seq4repair_space>convert<seq2seq4repair_space>" ; public void validate ( ) { } public String evaluate ( ) { validate ( ) ; if ( ( url ) != null ) { return getUrl ( ) ; } if ( makeURL ) { try { <START_BUG> return file . toURL ( ) . toExternalForm ( ) ; <END_BUG> } catch ( MalformedURLException e ) { throw new BuildException ( ( ( WsdlToDotnet . Schema . ERROR_NO_URL_CONVERT ) + ( file ) ) ) ; } } return file . toString ( ) ; } public File getFile ( ) { } public void setFile ( File file ) { } public String getUrl ( ) { } public void setUrl ( String url ) { } public boolean isMakeURL ( ) { } public void setMakeURL ( boolean makeURL ) { } public long getTimestamp ( ) { } } public static class Compiler extends EnumeratedAttribute { public static final String COMPILER_MS = "microsoft" ; public static final String COMPILER_MONO = "mono" ; public static final String COMPILER_MS_ON_MONO = "microsoft-on-mono" ; String [ ] compilers = new String [ ] { WsdlToDotnet . Compiler . COMPILER_MS , WsdlToDotnet . Compiler . COMPILER_MONO , WsdlToDotnet . Compiler . COMPILER_MS_ON_MONO } ; public static final String EXE_WSDL = "wsdl" ; public static final String EXE_MONO = "mono" ; String [ ] compilerExecutables = new String [ ] { WsdlToDotnet . Compiler . EXE_WSDL , WsdlToDotnet . Compiler . EXE_WSDL , WsdlToDotnet . Compiler . EXE_MONO } ; String [ ] [ ] extraCompilerArgs = new String [ ] [ ] { new String [ ] { } , new String [ ] { } , new String [ ] { ( WsdlToDotnet . Compiler . EXE_WSDL ) + ".exe" } } ; boolean [ ] absoluteFiles = new boolean [ ] { true , false , true } ; public String [ ] getValues ( ) { } public static WsdlToDotnet . Compiler createDefaultCompiler ( ) { } public String getCommand ( ) { } public String [ ] getExtraArgs ( ) { } public boolean supportsAbsoluteFiles ( ) { } public void applyExtraArgs ( NetCommand command ) { } } }

Fix:
return WsdlToDotnet . FILE_UTILS . getFileURL ( file ) . toExternalForm ( ) ;