Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Infer reflection configuration for TestContextBootstrapper implementations #1270

Closed
snicoll opened this issue Nov 17, 2021 · 0 comments
Closed
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@snicoll
Copy link
Contributor

snicoll commented Nov 17, 2021

The boot-features sample fail atm with the following:

 Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.test.autoconfigure.web.client.RestClientTestContextBootstrapper]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.boot.test.autoconfigure.web.client.RestClientTestContextBootstrapper.<init>()
       org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:29)
       org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:176)
       org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:147)
       [...]
     Caused by: java.lang.NoSuchMethodException: org.springframework.boot.test.autoconfigure.web.client.RestClientTestContextBootstrapper.<init>()
       java.lang.Class.getConstructor0(DynamicHub.java:3349)
       java.lang.Class.getDeclaredConstructor(DynamicHub.java:2553)
       org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:25)
       [...]

We should be able to infer the implementations that require to be instantiated via reflection.

@snicoll snicoll added the type: enhancement A general enhancement label Nov 17, 2021
@snicoll snicoll added this to the 0.11.0-RC1 milestone Nov 17, 2021
@sdeleuze sdeleuze self-assigned this Nov 17, 2021
sdeleuze added a commit to sdeleuze/spring-native that referenced this issue Nov 17, 2021
snicoll added a commit that referenced this issue Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement A general enhancement
Development

No branches or pull requests

2 participants