File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
agent/src/main/java/scalive Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,15 +156,15 @@ private static ClassLoader sbtFindMainClassLoader() throws Exception {
156
156
// Thread Context Class Loaders:
157
157
//
158
158
// #Id ClassLoader Info
159
- // 1 URLClassLoader main #1 [main] <--- Take out this one
159
+ // 1 URLClassLoader main #1 [main] <--- Take out this one (Info is not always "main #1 [main]")
160
160
// 2 ClasspathFilter xitrum-akka.actor.default-dispatcher-2 #31 [run-main-group-0]
161
161
162
162
Collection <ClassLoaderInfo > clis = DISCOVERY .listClassLoaders ();
163
163
for (ClassLoaderInfo cli : clis ) {
164
164
ClassLoader cl = cli .getClassLoader ();
165
165
String name = cli .getClassLoaderName ();
166
166
167
- // Can't use info because it can be "process reaper #8 [system]" etc.
167
+ // Can't use info because it's not fixed; can be "process reaper #8 [system]" etc.
168
168
boolean mainClassLoader = cl instanceof URLClassLoader && "URLClassLoader" .equals (name );
169
169
170
170
if (mainClassLoader ) return cl ;
You can’t perform that action at this time.
0 commit comments