Revert "Work around Groovy compiler bug that can name classes incorrectly"
This reverts commit 46fc5c05e3.
Closes #598
This commit is contained in:
parent
58b768b204
commit
1deeccda30
|
|
@ -20,7 +20,6 @@ import groovy.lang.GroovyClassLoader;
|
|||
import groovy.lang.GroovyClassLoader.ClassCollector;
|
||||
import groovy.lang.GroovyCodeSource;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Field;
|
||||
import java.net.URL;
|
||||
|
|
@ -182,13 +181,7 @@ public class GroovyCompiler {
|
|||
for (String source : sources) {
|
||||
List<String> paths = ResourceUtils.getUrls(source, this.loader);
|
||||
for (String path : paths) {
|
||||
URL url = new URL(path);
|
||||
if ("file".equals(url.getProtocol())) {
|
||||
compilationUnit.addSource(new File(url.getFile()));
|
||||
}
|
||||
else {
|
||||
compilationUnit.addSource(url);
|
||||
}
|
||||
compilationUnit.addSource(new URL(path));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue