martin-g commented on PR #3216:
URL: https://github.com/apache/avro/pull/3216#issuecomment-2421798113
```diff
diff --git
i/lang/java/avro/src/main/java/org/apache/avro/util/ClassUtils.java
w/lang/java/avro/src/main/java/org/apache/avro/util/ClassUtils.java
index dad59a551..e042d7b95 100644
--- i/lang/java/avro/src/main/java/org/apache/avro/util/ClassUtils.java
+++ w/lang/java/avro/src/main/java/org/apache/avro/util/ClassUtils.java
@@ -92,7 +92,7 @@ public class ClassUtils {
Class<?> c = null;
if (classLoader != null && className != null) {
try {
- c = Class.forName(className, true, classLoader);
+ c = Class.forName(className, false, classLoader);
} catch (ClassNotFoundException e) {
// Ignore and return null
}
```
this fixes the problem and all other tests pass.
I'll leave it to the Java developers to decide whether it is a good solution
or not.
--
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]