Skip to content

Commit

Permalink
fix jar loader bug
Browse files Browse the repository at this point in the history
  • Loading branch information
allwefantasy committed Sep 20, 2017
1 parent 8eb6b98 commit 81c8d77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object JarUtil {
val method = classOf[URLClassLoader].getDeclaredMethod("addURL", classOf[URL])
method.setAccessible(true)
method.invoke(classLoader, uri)
return Class.forName(className)
return Class.forName(className, true, classLoader)
}
}

Expand Down

0 comments on commit 81c8d77

Please sign in to comment.