Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #427 from pvlugter/root-loader

Use system classloader when finding root classloader
  • Loading branch information...
commit a36212886db1f197725b64ca7e6c0594a049164a 2 parents 2a84a80 + 7b77169
@harrah authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 util/classpath/ClasspathUtilities.scala
View
4 util/classpath/ClasspathUtilities.scala
@@ -38,7 +38,9 @@ object ClasspathUtilities
val p = loader.getParent
if(p eq null) loader else parent(p)
}
- parent(getClass.getClassLoader)
+ val systemLoader = ClassLoader.getSystemClassLoader
+ if (systemLoader ne null) parent(systemLoader)
+ else parent(getClass.getClassLoader)
}
final val AppClassPath = "app.class.path"

0 comments on commit a362128

Please sign in to comment.
Something went wrong with that request. Please try again.