We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e70db2 commit b80f6feCopy full SHA for b80f6fe
src/main/java/org/scijava/log/CallingClassUtils.java
@@ -29,6 +29,8 @@
29
30
package org.scijava.log;
31
32
+import org.scijava.Context;
33
+
34
/**
35
* Utility class for getting the calling class of a method.
36
*
@@ -60,7 +62,7 @@ public static String getCallingClassName() {
60
62
61
63
private static boolean hasIgnoreAsCallingClassAnnotation(String className) {
64
try {
- Class< ? > clazz = Class.forName(className);
65
+ Class< ? > clazz = Context.getClassLoader().loadClass(className);
66
return clazz.isAnnotationPresent(IgnoreAsCallingClass.class);
67
}
68
catch (ClassNotFoundException ignore) {
0 commit comments