You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/06/12 08:11:19 UTC

logging-log4j2 git commit: [LOG4J2-1051] NoClassDefFoundError when starting app on Google App Engine. Remove class init check for permissions this class does not use.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master c04d36767 -> 4fba3c460


[LOG4J2-1051] NoClassDefFoundError when starting app on Google App
Engine. Remove class init check for permissions this class does not use.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/4fba3c46
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/4fba3c46
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/4fba3c46

Branch: refs/heads/master
Commit: 4fba3c46052ba79bbfb20b9ab25041fafcdc4213
Parents: c04d367
Author: Gary Gregory <ga...@gmail.com>
Authored: Thu Jun 11 23:11:08 2015 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Thu Jun 11 23:11:08 2015 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/logging/log4j/core/util/Loader.java | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4fba3c46/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Loader.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Loader.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Loader.java
index 492a1ff..470f49e 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Loader.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Loader.java
@@ -35,14 +35,6 @@ public final class Loader {
 
     private static final String TSTR = "Caught Exception while in Loader.getResource. This may be innocuous.";
 
-    static {
-        final SecurityManager sm = System.getSecurityManager();
-        if (sm != null) {
-            sm.checkPermission(new RuntimePermission("getStackTrace"));
-            sm.checkPermission(new ReflectPermission("suppressAccessChecks"));
-        }
-    }
-
     /**
      * Returns the ClassLoader to use.
      * @return the ClassLoader.