iemejia commented on code in PR #3693:
URL: https://github.com/apache/avro/pull/3693#discussion_r3012462224


##########
lang/java/avro/src/main/java/org/apache/avro/io/FastReaderBuilder.java:
##########
@@ -446,8 +447,8 @@ private FieldReader getTransformingStringReader(String 
valueClass, FieldReader s
 
   private Optional<Class<?>> findClass(String clazz) {
     try {
-      return Optional.of(data.getClassLoader().loadClass(clazz));
-    } catch (ReflectiveOperationException e) {
+      return Optional.of(ClassUtils.forName(data.getClassLoader(), clazz));
+    } catch (ClassNotFoundException | SecurityException e) {

Review Comment:
   Oh you have a point I somehow did not remember that SecurityException was a 
RuntimeException. I will fix it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to