Modify move ClassLoader.fetching in PackageParam to ClassLoader.onLoadClass in ReflectionFactory and fix reuse problem

This commit is contained in:
2022-09-13 23:45:15 +08:00
parent 9f68066d5e
commit d345a5d94b
6 changed files with 93 additions and 78 deletions

View File

@@ -152,7 +152,7 @@ fun useDangerousOperation(option: String)
你还需要在整个作用域中声明注解 `CauseProblemsApi` 以消除警告。
若你只需要 Hook `ClassLoader``loadClass` 方法,请参考 [ClassLoader.fetching](api/document?id=classloaderfetching-i-ext-method)。
若你只需要 Hook `ClassLoader``loadClass` 方法,请参考 [ClassLoader.onLoadClass](api/document?id=classloaderonloadclass-ext-method)。
!> 若你不知道允许此功能会带来何种后果,请勿使用。