can you check the code?
# spek
h
can you check the code?
r
can you paste the stacktrace? Can't checkout the code currently.
h
sure. java.lang.RuntimeException: java.lang.ClassCastException: org.jetbrains.spek.RobolectricInstanceFactoryTest$testUsingRobolectric$RobolectricSpek cannot be cast to org.jetbrains.spek.api.Spek
Copy code
java.lang.RuntimeException: java.lang.ClassCastException: org.jetbrains.spek.RobolectricInstanceFactoryTest$testUsingRobolectric$RobolectricSpek cannot be cast to org.jetbrains.spek.api.Spek
Copy code
class RobolectricSpek(val sdkEnvironment: SdkEnvironment, val config: Config, val androidManifest: AndroidManifest ): Spek({
So robolectric spek is subclass of spek
but I am unable to case because of different class loader. if i use the same classloader it works
r
can you paste the full stacktrace? or is that it?
h
*slack
do you know any hello world example with a dummy class loader?
or you can check and reply whenever you are free.
r
Added an inline comment to the commit.
h
ahh. you are right.
my mistake.
r
did it work?
h
some issues with shadows but the bytecode manipulation is correct.
with some debugging hopefully we have something ready by next week
r
at least you're one step closer 🙂 good luck!