@@ -63,17 +63,15 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
63
63
SecretsSerializer .class , NioSocketChannel .class , AbstractByteBufAllocator .class ,
64
64
NioDatagramChannel .class , PulsarAdminBuilderImpl .class , OffloadProcessStatusImpl .class ,
65
65
Commands .class , ReferenceCountUtil .class )
66
- .forEach (type -> reflectionHints .registerType (type ,
67
- builder -> builder .withMembers (MemberCategory .INVOKE_DECLARED_CONSTRUCTORS ,
68
- MemberCategory .INVOKE_DECLARED_METHODS , MemberCategory .INTROSPECT_PUBLIC_METHODS )));
66
+ .forEach (type -> reflectionHints .registerType (type , builder -> builder
67
+ .withMembers (MemberCategory .INVOKE_DECLARED_CONSTRUCTORS , MemberCategory .INVOKE_DECLARED_METHODS )));
69
68
70
69
// In addition to the above member category levels, these components need field
71
70
// and declared class level access.
72
71
Stream .of (ClientConfigurationData .class , ConsumerConfigurationData .class , ProducerConfigurationData .class )
73
72
.forEach (type -> reflectionHints .registerType (type ,
74
73
builder -> builder .withMembers (MemberCategory .INVOKE_DECLARED_CONSTRUCTORS ,
75
- MemberCategory .INVOKE_DECLARED_METHODS , MemberCategory .INTROSPECT_PUBLIC_METHODS ,
76
- MemberCategory .DECLARED_CLASSES , MemberCategory .DECLARED_FIELDS )));
74
+ MemberCategory .INVOKE_DECLARED_METHODS , MemberCategory .ACCESS_DECLARED_FIELDS )));
77
75
78
76
// These are inaccessible interfaces/classes in a normal scenario, thus using the
79
77
// String version, and we need field level access in them.
@@ -88,7 +86,7 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
88
86
"org.apache.pulsar.shade.io.netty.util.internal.shaded.org.jctools.queues.unpadded.MpscUnpaddedArrayQueueProducerIndexField" ,
89
87
"org.apache.pulsar.shade.io.netty.util.internal.shaded.org.jctools.queues.unpadded.MpscUnpaddedArrayQueueProducerLimitField" )
90
88
.forEach (typeName -> reflectionHints .registerTypeIfPresent (classLoader , typeName ,
91
- MemberCategory .DECLARED_FIELDS ));
89
+ MemberCategory .ACCESS_DECLARED_FIELDS ));
92
90
93
91
// @formatter:off
94
92
Stream .of (
@@ -150,9 +148,7 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
150
148
MemberCategory .INVOKE_DECLARED_CONSTRUCTORS ,
151
149
MemberCategory .INVOKE_PUBLIC_METHODS ,
152
150
MemberCategory .INVOKE_DECLARED_METHODS ,
153
- MemberCategory .INTROSPECT_PUBLIC_METHODS ,
154
- MemberCategory .DECLARED_CLASSES ,
155
- MemberCategory .DECLARED_FIELDS )));
151
+ MemberCategory .ACCESS_DECLARED_FIELDS )));
156
152
reflectionHints .registerField (ReflectionUtils .findField (Thread .class , "threadLocalRandomProbe" ));
157
153
158
154
// @formatter:on
0 commit comments