Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
1deeccda
Commit
1deeccda
authored
May 21, 2014
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Work around Groovy compiler bug that can name classes incorrectly"
This reverts commit
46fc5c05
. Closes #598
parent
58b768b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
GroovyCompiler.java
...org/springframework/boot/cli/compiler/GroovyCompiler.java
+1
-8
No files found.
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompiler.java
View file @
1deeccda
...
@@ -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
);
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment