spring-projects / spring-projects/spring-modulith
spring-modulith-observability causes Kotlin bean properties to be initialized as null
Open
@odrotbohm is already working on this.
Since Sep 12, 2024.
in: observability
meta: waiting for feedback
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 222
- PR merge metrics
- No merged PRs in 30d
Description
When enabling spring-modulith-observability, Kotlin bean properties are unexpectedly initialized as null. For example, after enabling this module, properties such as hisHttpClient and medicalInstitutionCode are null. Disabling the module resolves the problem.
Expected behavior:
- Kotlin bean properties should be correctly initialized when observability is enabled.
Actual behavior:
- When
spring-modulith-observabilityis enabled, the properties in the Kotlin bean arenullas seen in the following screenshots.
Screenshots:
- Bean initialization with
nullvalues:
- CGLIB proxy details showing
nullfor constructor-injected properties:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.