Skip to content

Commit

Permalink
[LOGMGR=183] Use the correct method for finding the constructor for t…
Browse files Browse the repository at this point in the history
…he Java 7+ level hack.
  • Loading branch information
jamezp committed Nov 30, 2017
1 parent f486cb0 commit 7fb0904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jboss/logmanager/LogManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7fb0904

Please sign in to comment.