-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid
Description
To recreate, put the following in a file, say bug.groovy
@RestController
class Bug {
@RequestMapping("*")
String home() {
new groovy.json.JsonSlurper()
"!"
}
}
Run it:
spring run bug.groovy
startup failed:
file:/Users/curt.cox/tmp/spring-boot/bug.groovy: 6: unable to resolve class groovy.json.JsonSlurper
@ line 6, column 6.
new groovy.json.JsonSlurper()
^
1 error
When writing groovy scripts, all of the standard groovy classes should be available. If you delete the line creating JsonSlurper, the application runs as expected.
Metadata
Metadata
Assignees
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid