Commit 1deeccda authored by Andy Wilkinson's avatar Andy Wilkinson

Revert "Work around Groovy compiler bug that can name classes incorrectly"

This reverts commit 46fc5c05.

Closes #598
parent 58b768b2
...@@ -20,7 +20,6 @@ import groovy.lang.GroovyClassLoader; ...@@ -20,7 +20,6 @@ import groovy.lang.GroovyClassLoader;
import groovy.lang.GroovyClassLoader.ClassCollector; import groovy.lang.GroovyClassLoader.ClassCollector;
import groovy.lang.GroovyCodeSource; import groovy.lang.GroovyCodeSource;
import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.net.URL; import java.net.URL;
...@@ -182,13 +181,7 @@ public class GroovyCompiler { ...@@ -182,13 +181,7 @@ public class GroovyCompiler {
for (String source : sources) { for (String source : sources) {
List<String> paths = ResourceUtils.getUrls(source, this.loader); List<String> paths = ResourceUtils.getUrls(source, this.loader);
for (String path : paths) { for (String path : paths) {
URL url = new URL(path); compilationUnit.addSource(new URL(path));
if ("file".equals(url.getProtocol())) {
compilationUnit.addSource(new File(url.getFile()));
}
else {
compilationUnit.addSource(url);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment