Buggy code:
public class XMLValidateTask extends AbstractTask { public static String DEFAULT_XML_READER_CLASSNAME = "org.apache.crimson.parser.XMLReaderImpl" ; private static String INIT_FAILED_MSG = "Could<seq2seq4repair_space>not<seq2seq4repair_space>start<seq2seq4repair_space>xml<seq2seq4repair_space>validation:<seq2seq4repair_space>" ; private boolean m_warn = true ; private boolean m_lenient ; private String m_readerClassName = XMLValidateTask . DEFAULT_XML_READER_CLASSNAME ; private File m_file ; private ArrayList m_filesets = new ArrayList ( ) ; private XMLReader m_xmlReader ; private ValidatorErrorHandler m_errorHandler ; private Hashtable m_features = new Hashtable ( ) ; private ArrayList m_dtdLocations = new ArrayList ( ) ; private Path m_classpath ; public void setClassName ( final String className ) { } public void setClasspath ( final Path classpath ) throws TaskException { } public void setFile ( File file ) { } public void setLenient ( final boolean bool ) { } public void setWarn ( final boolean warn ) { } public void addFileset ( final FileSet fileSet ) { } public Path createClasspath ( ) throws TaskException { } public DTDLocation createDTD ( ) { } public void execute ( ) throws TaskException { } private EntityResolver buildEntityResolver ( ) { } private boolean setFeature ( final String feature , final boolean value , final boolean warn ) { } private void doValidate ( File afile ) throws TaskException { } private void initValidator ( ) throws TaskException { try { Class readerClass = null ; if ( ( m_classpath ) != null ) { <START_BUG> final URL [ ] urls = PathUtil . toURLs ( m_classpath ) ; <END_BUG> final ClassLoader classLoader = new URLClassLoader ( urls ) ; readerClass = classLoader . loadClass ( m_readerClassName ) ; } else { readerClass = Class . forName ( m_readerClassName ) ; } if ( XMLReader . class . isAssignableFrom ( readerClass ) ) { m_xmlReader = ( ( XMLReader ) ( readerClass . newInstance ( ) ) ) ; getContext ( ) . debug ( ( "Using<seq2seq4repair_space>SAX2<seq2seq4repair_space>reader<seq2seq4repair_space>" + ( m_readerClassName ) ) ) ; } else { if ( Parser . class . isAssignableFrom ( readerClass ) ) { Parser parser = ( ( Parser ) ( readerClass . newInstance ( ) ) ) ; m_xmlReader = new ParserAdapter ( parser ) ; getContext ( ) . debug ( ( "Using<seq2seq4repair_space>SAX1<seq2seq4repair_space>parser<seq2seq4repair_space>" + ( m_readerClassName ) ) ) ; } else { throw new TaskException ( ( ( ( XMLValidateTask . INIT_FAILED_MSG ) + ( m_readerClassName ) ) + "<seq2seq4repair_space>implements<seq2seq4repair_space>nor<seq2seq4repair_space>SAX1<seq2seq4repair_space>Parser<seq2seq4repair_space>nor<seq2seq4repair_space>SAX2<seq2seq4repair_space>XMLReader." ) ) ; } } } catch ( ClassNotFoundException e ) { throw new TaskException ( ( ( XMLValidateTask . INIT_FAILED_MSG ) + ( m_readerClassName ) ) , e ) ; } catch ( InstantiationException e ) { throw new TaskException ( ( ( XMLValidateTask . INIT_FAILED_MSG ) + ( m_readerClassName ) ) , e ) ; } catch ( IllegalAccessException e ) { throw new TaskException ( ( ( XMLValidateTask . INIT_FAILED_MSG ) + ( m_readerClassName ) ) , e ) ; } m_xmlReader . setEntityResolver ( buildEntityResolver ( ) ) ; m_errorHandler = new ValidatorErrorHandler ( m_warn , getContext ( ) ) ; m_xmlReader . setErrorHandler ( m_errorHandler ) ; if ( ! ( m_lenient ) ) { boolean ok = setFeature ( "http:////xml.org//sax//features//validation" , true , true ) ; if ( ! ok ) { throw new TaskException ( ( ( ( XMLValidateTask . INIT_FAILED_MSG ) + ( m_readerClassName ) ) + "<seq2seq4repair_space>doesn't<seq2seq4repair_space>provide<seq2seq4repair_space>validation" ) ) ; } } Enumeration = m_features . keys ( ) ; } }

Fix:
final URL [ ] urls = PathUtil . toURLs ( m_classpath , getContext ( ) ) ;