Commit 8e94b2ef authored by Mygod's avatar Mygod

Fix class not found

parent 716d50bb
...@@ -38,7 +38,7 @@ import java.util.concurrent.atomic.AtomicReference ...@@ -38,7 +38,7 @@ import java.util.concurrent.atomic.AtomicReference
class GuardedProcessPool { class GuardedProcessPool {
companion object Dummy : IOException("Oopsie the developer has made a no-no") { companion object Dummy : IOException("Oopsie the developer has made a no-no") {
private const val TAG = "GuardedProcessPool" private const val TAG = "GuardedProcessPool"
private val ProcessImpl by lazy { Class.forName("java/lang/ProcessManager\$ProcessImpl") } private val ProcessImpl by lazy { Class.forName("java.lang.ProcessManager\$ProcessImpl") }
private val pid by lazy { ProcessImpl.getField("pid").apply { isAccessible = true } } private val pid by lazy { ProcessImpl.getField("pid").apply { isAccessible = true } }
private val exitValueMutex by lazy { ProcessImpl.getField("exitValueMutex").apply { isAccessible = true } } private val exitValueMutex by lazy { ProcessImpl.getField("exitValueMutex").apply { isAccessible = true } }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment