Skip to content

Commit

Permalink
Merge pull request #39766 from geoand/register-reflection-arrays
Browse files Browse the repository at this point in the history
Properly handle array class types to be looked up
  • Loading branch information
geoand authored Mar 28, 2024
2 parents a58edc4 + 969766d commit 67f06de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private void registerClass(ClassLoader classLoader, String className, boolean me
}

try {
Class<?>[] declaredClasses = classLoader.loadClass(className).getDeclaredClasses();
Class<?>[] declaredClasses = Class.forName(className, false, classLoader).getDeclaredClasses();
for (Class<?> clazz : declaredClasses) {
registerClass(classLoader, clazz.getName(), methods, fields, false, serialization, unsafeAllocated,
reflectiveClass,
Expand Down

0 comments on commit 67f06de

Please sign in to comment.