Skip to content

Commit

Permalink
try to fix JENKINS-23442 (ClassCircularityError: java/util/logging/Lo…
Browse files Browse the repository at this point in the history
…gRecord)
  • Loading branch information
evernat committed Nov 1, 2015
1 parent 2c02adb commit 0ad60da
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -23,6 +23,8 @@
import hudson.util.PluginServletFilter;

import java.io.File;
import java.util.Arrays;
import java.util.logging.LogRecord;

import javax.servlet.ServletContext;

Expand Down Expand Up @@ -105,6 +107,10 @@ && isParameterUndefined("javamelody.analytics-id")) {
// hudson.tasks.Mailer.DescriptorImpl.class)).getAdminAddress();
// but the admin-emails property is better next to the mail session

// try to fix https://issues.jenkins-ci.org/browse/JENKINS-23442 (ClassCircularityError: java/util/logging/LogRecord)
// by preloading the java.util.logging.LogRecord class
Arrays.hashCode(new Class<?>[] { LogRecord.class });

this.filter = new HudsonMonitoringFilter();
PluginServletFilter.addFilter(filter);
}
Expand Down

0 comments on commit 0ad60da

Please sign in to comment.