Skip to content
Permalink
Browse files
try to fix JENKINS-23442 (ClassCircularityError: java/util/logging/Lo…
…gRecord)
  • Loading branch information
evernat committed Nov 1, 2015
1 parent 2c02adb commit 0ad60da0038048ca69672022e54434cb3c5c87a3
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/org/jvnet/hudson/plugins/monitoring/PluginImpl.java
@@ -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;

@@ -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);
}

0 comments on commit 0ad60da

Please sign in to comment.