File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
newrelic-agent/src/main/java/com/newrelic/agent Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import java .lang .ref .Reference ;
16
16
import java .lang .ref .ReferenceQueue ;
17
+ import java .text .MessageFormat ;
17
18
import java .util .Collections ;
18
19
import java .util .Map ;
19
20
import java .util .Set ;
@@ -32,6 +33,9 @@ public static final void loadInitialClasses() {
32
33
Utils .getClassResourceName (Class .forName ("java.net.URL" ));
33
34
UtilityClass .class .getName ();
34
35
36
+ // Force this formatter to load early to avoid a java.lang.ClassCircularityError
37
+ MessageFormat .format ("{0}" , 1.0 );
38
+
35
39
// This is here to attempt to get around a Websphere J9 (JDK6) deadlock
36
40
ClassLoader classLoader = UtilityClass .class .getClassLoader ();
37
41
classLoader .getResource (WeaveUtils .getClassResourceName (UtilityClass .class .getName ()));
You can’t perform that action at this time.
0 commit comments