Skip to content

Commit 51cb6f0

Browse files
authored
fix build for graalvm native (#11709)
1 parent 40670fb commit 51cb6f0

File tree

1 file changed

+4
-3
lines changed
  • smoke-tests-otel-starter/spring-boot-3/src/main/java/io/opentelemetry/spring/smoketest

1 file changed

+4
-3
lines changed

smoke-tests-otel-starter/spring-boot-3/src/main/java/io/opentelemetry/spring/smoketest/RuntimeHints.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ public void registerHints(
2424
.registerType(
2525
TypeReference.of(
2626
"org.springframework.data.mongodb.core.aggregation.AggregationOperation"),
27-
hint -> {
28-
hint.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
29-
});
27+
hint -> hint.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS))
28+
.registerType(
29+
TypeReference.of("org.apache.kafka.common.serialization.StringDeserializer"),
30+
hint -> hint.withMembers(MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS));
3031
}
3132
}

0 commit comments

Comments
 (0)