Skip to content

Commit 45da73d

Browse files
authored
Add LinkedHashMap to AOT hints (#382)
1 parent f282a9a commit 45da73d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

spring-pulsar/src/main/java/org/springframework/pulsar/aot/PulsarRuntimeHints.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.springframework.pulsar.aot;
1818

1919
import java.util.HashSet;
20+
import java.util.LinkedHashMap;
2021
import java.util.TreeMap;
2122
import java.util.stream.Stream;
2223

@@ -54,11 +55,13 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
5455
// and introspect all public methods. The components are a mix of JDK classes,
5556
// core Pulsar classes,
5657
// some other shaded components available through Pulsar client.
57-
Stream.of(HashSet.class, TreeMap.class, Authentication.class, AuthenticationDataProvider.class,
58-
SecretsSerializer.class, PulsarAdminBuilderImpl.class, OffloadProcessStatusImpl.class, Commands.class)
59-
.forEach(type -> reflectionHints.registerType(type,
60-
builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS,
61-
MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.INTROSPECT_PUBLIC_METHODS)));
58+
Stream.of(HashSet.class, LinkedHashMap.class, TreeMap.class, Authentication.class,
59+
AuthenticationDataProvider.class, SecretsSerializer.class, PulsarAdminBuilderImpl.class,
60+
OffloadProcessStatusImpl.class, Commands.class).forEach(
61+
type -> reflectionHints.registerType(type,
62+
builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS,
63+
MemberCategory.INVOKE_DECLARED_METHODS,
64+
MemberCategory.INTROSPECT_PUBLIC_METHODS)));
6265

6366
// In addition to the above member category levels, these components need field
6467
// and declared class level access.

0 commit comments

Comments
 (0)