File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
spring-boot-3.2/src/main/java/io/opentelemetry/spring/smoketest
spring-boot-3/src/main/java/io/opentelemetry/spring/smoketest Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change 55
66package io .opentelemetry .spring .smoketest ;
77
8- import org .springframework .aot .hint .MemberCategory ;
98import org .springframework .aot .hint .RuntimeHintsRegistrar ;
10- import org .springframework .aot .hint .TypeReference ;
119
1210// Necessary for GraalVM native test
1311public class RuntimeHints implements RuntimeHintsRegistrar {
@@ -16,16 +14,5 @@ public class RuntimeHints implements RuntimeHintsRegistrar {
1614 public void registerHints (
1715 org .springframework .aot .hint .RuntimeHints hints , ClassLoader classLoader ) {
1816 hints .resources ().registerResourceBundle ("org.apache.commons.dbcp2.LocalStrings" );
19-
20- // To avoid Spring native issue with MongoDB: java.lang.ClassNotFoundException:
21- // org.springframework.data.mongodb.core.aggregation.AggregationOperation
22- hints
23- .reflection ()
24- .registerType (
25- TypeReference .of (
26- "org.springframework.data.mongodb.core.aggregation.AggregationOperation" ),
27- hint -> {
28- hint .withMembers (MemberCategory .INVOKE_DECLARED_CONSTRUCTORS );
29- });
3017 }
3118}
Original file line number Diff line number Diff line change 55
66package io .opentelemetry .spring .smoketest ;
77
8- import org .springframework .aot .hint .MemberCategory ;
98import org .springframework .aot .hint .RuntimeHintsRegistrar ;
10- import org .springframework .aot .hint .TypeReference ;
119
1210// Necessary for GraalVM native test
1311public class RuntimeHints implements RuntimeHintsRegistrar {
@@ -16,14 +14,5 @@ public class RuntimeHints implements RuntimeHintsRegistrar {
1614 public void registerHints (
1715 org .springframework .aot .hint .RuntimeHints hints , ClassLoader classLoader ) {
1816 hints .resources ().registerResourceBundle ("org.apache.commons.dbcp2.LocalStrings" );
19-
20- // To avoid Spring native issue with MongoDB: java.lang.ClassNotFoundException:
21- // org.springframework.data.mongodb.core.aggregation.AggregationOperation
22- hints
23- .reflection ()
24- .registerType (
25- TypeReference .of (
26- "org.springframework.data.mongodb.core.aggregation.AggregationOperation" ),
27- hint -> hint .withMembers (MemberCategory .INVOKE_DECLARED_CONSTRUCTORS ));
2817 }
2918}
You can’t perform that action at this time.
0 commit comments