Andreas Turban
Andreas Turban
Was fixed by #1729
This problem gets worse with Groovy >=4.0.7, because it uses now indy as default, which makes the current used hack in `BaseMockInterceptor` checking the caller stack useless due to MethodHandle/Indy...
Spock now supports static mocks via mockito and the Spock API `SpyStatic()`. See #1756
I have opened the PR #1731 which fixes the specific issue with the `getAnnotation()` method not returning a stub instanceof `Annotation`. But as @leonard84 already mentioned, this will not solve...
#1729 would fix this issue
Was fixed by https://github.com/spockframework/spock/pull/1729
I will have a look at that next week. It has probably something to do with the dependency change from `gentyref` to `geantyref` in 2.4-M2.
This is an issue in the geantyref library. I have opened an issue there: https://github.com/leangen/geantyref/issues/27
I am really not sure here, because this also break, when Spock is not involved, but only Groovy: ```groovy import static org.assertj.core.api.Assertions.assertThat def someString = 'some string' assert assertThat(someString).isEqualTo('some string')...
@scordio You can find the documentation about that in the section [Customizing the truth with asBoolean() methods](https://groovy-lang.org/semantics.html#_customizing_the_truth_with_asboolean_methods) in the Groovy documentation. Groovy has more such methods, see [operator overloading](http://groovy-lang.org/operators.html#Operator-Overloading) It...