profile
viewpoint

Ask questionsBackport FilteringSpringBootCondition on Boot 2.2.x via a substitution

To make it possible to run the agent out of the box, see https://github.com/spring-projects/spring-boot/pull/19490.

spring-projects-experimental/spring-graal-native

Answer questions sdeleuze

@aclement I tried following substitution:

@TargetClass(className="org.springframework.boot.autoconfigure.condition.FilteringSpringBootCondition")
final class Target_FilteringSpringBootCondition {

	@Substitute
	protected static Class<?> resolve(String className, ClassLoader classLoader) throws ClassNotFoundException {
		if (classLoader != null) {
			return Class.forName(className, false, classLoader);
		}
		return Class.forName(className);
	}
}

But I get a ava.lang.ClassNotFoundException: org.springframework.context.support.PropertySourcesPlaceholderConfigurer error if I remove the commandline-runner agent patch witg GraalVM 19.3.1, any thoughts?

useful!

Related questions

No questions were found.
Github User Rank List