Hi there all! Has anyone run into a problem simila...
# ktor
i
Hi there all! Has anyone run into a problem similar to this: https://github.com/InsertKoinIO/koin/issues/1682 ? It occurs with dev mode and auto reload enabled, when you try to interact with an instance of a class loaded outside of a Ktor module in code within a Ktor module. Ktors special classloader that makes auto reload possible loads modules classes and all related classes into the memory. All these classes reference the special classloader. If they try to interact with an instance created outside of the module, a class cast exception is thrown. I have no other idea to circumvent this than making it possible for Ktor to ignore specific paths and / or classes for auto reloading: https://github.com/imeszaros/ktor/commit/e7726fba9451f2cde73f76c5e821d9337c4a38ed What do you think about this?