diff --git a/solr/src/test/org/apache/solr/SolrInfoMBeanTest.java b/solr/src/test/org/apache/solr/SolrInfoMBeanTest.java index 7a1063ca4c1..b625a0e9d50 100644 --- a/solr/src/test/org/apache/solr/SolrInfoMBeanTest.java +++ b/solr/src/test/org/apache/solr/SolrInfoMBeanTest.java @@ -89,7 +89,7 @@ public class SolrInfoMBeanTest extends TestCase String path = pckgname.replace('.', '/'); Enumeration resources = cld.getResources(path); while (resources.hasMoreElements()) { - directories.add(new File(resources.nextElement().getPath())); + directories.add(new File(resources.nextElement().toURI())); } ArrayList classes = new ArrayList();