Skip to content

Commit

Permalink
Merge pull request #156 from jamezp/LOGMGR-183
Browse files Browse the repository at this point in the history
[LOGMGR-183] Use the correct method for finding the constructor for t…
  • Loading branch information
jamezp authored Nov 30, 2017
2 parents f486cb0 + 9504e5f commit 72a880d
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 72a880d

Please sign in to comment.