diff options
Diffstat (limited to 'src/manual')
-rw-r--r-- | src/manual/scala/tools/docutil/EmitHtml.scala | 2 | ||||
-rw-r--r-- | src/manual/scala/tools/docutil/EmitManPage.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/manual/scala/tools/docutil/EmitHtml.scala b/src/manual/scala/tools/docutil/EmitHtml.scala index 798a9c72a5..4b0f0c0405 100644 --- a/src/manual/scala/tools/docutil/EmitHtml.scala +++ b/src/manual/scala/tools/docutil/EmitHtml.scala @@ -332,7 +332,7 @@ object EmitHtml { exit(1) } try { - val cl = ClassLoader.getSystemClassLoader() + val cl = this.getClass.getClassLoader() val clasz = cl.loadClass(args(0)) val meth = clasz.getDeclaredMethod("manpage", Predef.Array[Class]()) val doc = meth.invoke(null, Predef.Array[Object]()).asInstanceOf[Document] diff --git a/src/manual/scala/tools/docutil/EmitManPage.scala b/src/manual/scala/tools/docutil/EmitManPage.scala index e646c74c59..9ecbcf2a1b 100644 --- a/src/manual/scala/tools/docutil/EmitManPage.scala +++ b/src/manual/scala/tools/docutil/EmitManPage.scala @@ -150,7 +150,7 @@ object EmitManPage { def main(args: Array[String]) = try { - val cl = ClassLoader.getSystemClassLoader() + val cl = this.getClass.getClassLoader() val clasz = cl.loadClass(args(0)) val meth = clasz.getDeclaredMethod("manpage", Predef.Array[Class]()) val doc = meth.invoke(null, Predef.Array[Object]()).asInstanceOf[Document] |