mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 00:30:17 +08:00
complete classloader
This commit is contained in:
parent
e98bfa363f
commit
d88e2aeeaa
@ -34,7 +34,7 @@ internal class PluginsLoader(private val parentClassLoader: ClassLoader) {
|
|||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
logger.error("Plugin(${plugin.key}) can't not close its ClassLoader(${cl})", e)
|
logger.error("Plugin(${plugin.key}) can't not close its ClassLoader(${cl})", e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
classesCache.clear()
|
classesCache.clear()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ internal class PluginClassLoader(
|
|||||||
clazz = loadClass(name)//这里应该是find, 如果不行就要改
|
clazz = loadClass(name)//这里应该是find, 如果不行就要改
|
||||||
}
|
}
|
||||||
pluginsLoader.addClassCache(name, clazz)
|
pluginsLoader.addClassCache(name, clazz)
|
||||||
this.addClassCache(name, clazz)
|
this.addClassCache(name, clazz)
|
||||||
clazz
|
clazz
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user