Skip to content

Commit 2dd2086

Browse files
Flowdalicppkarwasz
authored andcommitted
Do not warn if sun.reflect.Reflection.getCallerClass() is unavailable
Modern Java releases disallow the access to internal sun.* API. There is not much the user can do about it, hence this warning is not actionable and therefore unneeded. It also does not tag its origin, causing confusion among users about its whereabouts.
1 parent 39ea3b7 commit 2dd2086

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

log4j-api/src/main/java/org/apache/logging/log4j/util/StackLocator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public final class StackLocator {
7777
}
7878
}
7979
} catch (final Exception | LinkageError e) {
80-
System.out.println("WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.");
8180
getCallerClassMethod = null;
8281
java7u25CompensationOffset = -1;
8382
}

0 commit comments

Comments
 (0)