Skip to content

EnvironmentPostProcessors aren't instantiated with correct ClassLoader #27043

Closed
@jaminh

Description

@jaminh

Similar to the issue raised in #26126, when using Spring Boot 2.5.0 org.springframework.boot.env.ReflectionEnvironmentPostProcessorsFactory will not use the class loader from the SpringApplication's ResourceLoader when instantiating EnvironmentPostProcessors.

It appears to me the classloader would need to be passed to the instantiator here

. That way could use the correct classloader rather than being passed "null". ReflectionEnvironmentPostProcessorsFactory would need to be made aware of the SpringApplication's ClassLoader as well.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions