Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.2
Description
@Grab('org.springframework.boot:spring-boot-starter-webflux:2.6.7') import org.springframework.core.ParameterizedTypeReference import org.springframework.http.MediaType import org.springframework.web.reactive.function.client.WebClient import java.time.Duration @groovy.transform.CompileStatic class WebFluxFluentApiBugTest { private static final ParameterizedTypeReference<List<BigDecimal>> TYPE_TAG = new ParameterizedTypeReference<List<BigDecimal>>() {} private static final Duration MAX_DURATION = Duration.ofSeconds(8) private final WebClient webClient List<BigDecimal> flux() { def response = webClient.get() .uri('/something?id={id}', 'id') .accept(MediaType.APPLICATION_JSON) .retrieve() .toEntity(TYPE_TAG) .block(MAX_DURATION) return response.getBody() ?: [] } }
Attachments
Issue Links
- is related to
-
GROOVY-9968 @TypeChecked Error: Members of Iterable<T extends Foo> are Foo, not Object
- Closed
-
GROOVY-10055 STC does not support self bounded types
- Closed
-
GROOVY-10234 Groovyc throws Stackoverflow error on generic class with lower bound
- Closed
-
GROOVY-10556 TypeChecked/CompileStatic index out of bounds
- Closed