<https://github.com/spekframework/spek/issues/286>...
# spek
h
https://github.com/spekframework/spek/issues/286 - still issues with multiple class loaders. i added an example how is this working in java 8 and junit 4 based specification framework. please check whenever you are free.
r
can you also include the complete stacktrace and where the ClassCastException happens in the code 🙂 Will take a look into it when I have the time.
h
It is the same issue. Just use a custom class loader and try to create a new spek object in instance factory override fun <T : Spek> create(spek: KClass<T>): T
r
hmmm, have you tried setting the context class loader?
h
I did.
Maybe whenever you are free just create a hello world custom class loader
spek project.
it will be a super useful example.
r
Yep, I will. 🙂
h
thanks.