Skip to content

Commit ba4a94b

Browse files
committed
remove @CompileStatic because of problem
- org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'functional:' with class 'java.lang.String' to class 'char' - at org.codehaus.groovy.grails.test.runner.GrailsProjectTestRunner.runAllTests(GrailsProjectTestRunner.groovy:171)
1 parent eb500a9 commit ba4a94b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grails-test/src/main/groovy/org/codehaus/groovy/grails/test/runner/GrailsProjectTestRunner.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package org.codehaus.groovy.grails.test.runner
1717

1818
import grails.build.logging.GrailsConsole
1919
import groovy.transform.CompileStatic
20+
import groovy.transform.TypeChecked
2021
import groovy.transform.TypeCheckingMode
2122

2223
import org.codehaus.groovy.grails.cli.api.BaseSettingsApi
@@ -157,7 +158,7 @@ class GrailsProjectTestRunner extends BaseSettingsApi {
157158
* @param triggerEvents Whether to trigger events on start and finish of the test run (optional)
158159
* @return true if the tests passed
159160
*/
160-
@CompileStatic
161+
@TypeChecked
161162
boolean runAllTests(Map<String, String> argsMap, boolean triggerEvents = true) {
162163
testExecutionContext.setVariable("serverContextPath", projectPackager.configureServerContextPath())
163164

0 commit comments

Comments
 (0)