Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0.6
-
None
Description
This is probably a duplicate, but I'm not sure which of.
I'm using Awaitility's until(Callable<Boolean>) and passing it a closure:
List<String> buffer = []
...
await().until { buffer }
Expected behavior: buffer is coerced to a boolean using Groovy truth.
Actual behavior:
java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.lang.Boolean
Attachments
Issue Links
- is related to
-
GROOVY-8168 When using Interface: BigDecimal cannot be cast to Double
- Closed
-
GROOVY-9971 @TypeChecked: Closure<String> no longer compatible with Closure<GString> argument
- Closed
- relates to
-
GROOVY-11051 Static compiler does not coerce Groovy truth from closures
- Closed