@@ -226,6 +226,21 @@ public void registerAllClassesQuery(ConfigurationCondition condition, Class<?> c
226
226
});
227
227
}
228
228
229
+ void registerClassMetadata (ConfigurationCondition condition , Class <?> clazz ) {
230
+ registerAllDeclaredFieldsQuery (condition , true , clazz );
231
+ registerAllFieldsQuery (condition , true , clazz );
232
+ registerAllDeclaredMethodsQuery (condition , true , clazz );
233
+ registerAllMethodsQuery (condition , true , clazz );
234
+ registerAllDeclaredConstructorsQuery (condition , true , clazz );
235
+ registerAllConstructorsQuery (condition , true , clazz );
236
+ registerAllDeclaredClassesQuery (condition , clazz );
237
+ registerAllClassesQuery (condition , clazz );
238
+ registerAllRecordComponentsQuery (condition , clazz );
239
+ registerAllPermittedSubclassesQuery (condition , clazz );
240
+ registerAllNestMembersQuery (condition , clazz );
241
+ registerAllSignersQuery (condition , clazz );
242
+ }
243
+
229
244
/**
230
245
* Runtime conditions can only be used with type, so they are not valid here.
231
246
*/
@@ -1161,10 +1176,10 @@ public Map<Class<?>, Set<Class<?>>> getReflectionInnerClasses() {
1161
1176
public int getEnabledReflectionQueries (Class <?> clazz ) {
1162
1177
int enabledQueries = enabledQueriesFlags .getOrDefault (clazz , 0 );
1163
1178
/*
1164
- * Primitives, arrays and object are registered by default since they provide reflective
1165
- * access to either no members or only Object methods .
1179
+ * Primitives and arrays are registered by default since they provide reflective access to
1180
+ * no members.
1166
1181
*/
1167
- if (clazz == Object . class || clazz .isPrimitive () || clazz .isArray ()) {
1182
+ if (clazz .isPrimitive () || clazz .isArray ()) {
1168
1183
enabledQueries |= ALL_DECLARED_CLASSES_FLAG | ALL_CLASSES_FLAG | ALL_DECLARED_CONSTRUCTORS_FLAG | ALL_CONSTRUCTORS_FLAG | ALL_DECLARED_METHODS_FLAG | ALL_METHODS_FLAG |
1169
1184
ALL_DECLARED_FIELDS_FLAG | ALL_FIELDS_FLAG ;
1170
1185
}
0 commit comments