From 7fb09044e7de913b186db810d98732c43a81f3db Mon Sep 17 00:00:00 2001 From: James Perkins Date: Thu, 30 Nov 2017 11:40:56 -0800 Subject: [PATCH] [LOGMGR=183] Use the correct method for finding the constructor for the Java 7+ level hack. --- src/main/java/org/jboss/logmanager/LogManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/logmanager/LogManager.java b/src/main/java/org/jboss/logmanager/LogManager.java index e0c62c8a..d99bc542 100644 --- a/src/main/java/org/jboss/logmanager/LogManager.java +++ b/src/main/java/org/jboss/logmanager/LogManager.java @@ -128,7 +128,7 @@ public Void run() { try { final Class knownLevelClass = Class.forName("java.util.logging.Level$KnownLevel"); synchronized (knownLevelClass) { - final Constructor constructor = knownLevelClass.getConstructor(java.util.logging.Level.class); + final Constructor constructor = knownLevelClass.getDeclaredConstructor(java.util.logging.Level.class); constructor.setAccessible(true); boolean doBuild = false; boolean setNameToLevel = false;