File tree 1 file changed +6
-0
lines changed
smoke-tests-otel-starter/spring-boot-3/src/main/java/io/opentelemetry/spring/smoketest
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 5
5
6
6
package io .opentelemetry .spring .smoketest ;
7
7
8
+ import org .springframework .aot .hint .MemberCategory ;
8
9
import org .springframework .aot .hint .RuntimeHintsRegistrar ;
10
+ import org .springframework .aot .hint .TypeReference ;
9
11
10
12
// Necessary for GraalVM native test
11
13
public class RuntimeHints implements RuntimeHintsRegistrar {
@@ -14,5 +16,9 @@ public class RuntimeHints implements RuntimeHintsRegistrar {
14
16
public void registerHints (
15
17
org .springframework .aot .hint .RuntimeHints hints , ClassLoader classLoader ) {
16
18
hints .resources ().registerResourceBundle ("org.apache.commons.dbcp2.LocalStrings" );
19
+ hints .reflection ().registerType (
20
+ TypeReference .of ("org.testcontainers.shaded.com.github.dockerjava.core.DockerConfigFile" ),
21
+ MemberCategory .INVOKE_DECLARED_CONSTRUCTORS ,
22
+ MemberCategory .INVOKE_DECLARED_METHODS );
17
23
}
18
24
}
You can’t perform that action at this time.
0 commit comments