or ```org.reflections.ReflectionsException: could ...
# spek
r
or
Copy code
org.reflections.ReflectionsException: could not create class object from file org/joda/time/tz/data/Etc/GMT-3
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:32)
	at org.reflections.Reflections.scan(Reflections.java:253)
	at org.reflections.Reflections.scan(Reflections.java:202)
	at org.reflections.Reflections.<init>(Reflections.java:123)
	at org.spekframework.spek2.runtime.SpekRuntime.createReflections(SpekJvmRuntime.kt:68)
	at org.spekframework.spek2.runtime.SpekRuntime.discover(SpekJvmRuntime.kt:29)
	at org.spekframework.spek2.junit.SpekTestEngine.discover(SpekTestEngine.kt:37)
	at org.junit.platform.launcher.core.DefaultLauncher.discoverEngineRoot(DefaultLauncher.java:130)
	at org.junit.platform.launcher.core.DefaultLauncher.discoverRoot(DefaultLauncher.java:117)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
	at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:74)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: org.reflections.ReflectionsException: could not create class file from GMT-3
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:102)
	at org.reflections.adapters.JavassistAdapter.getOfCreateClassObject(JavassistAdapter.java:24)
	at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:30)
	... 13 common frames omitted
r
I'll look into it, thanks!
a
Likely means that there are some classes in classpath that were compiled for old or new java bytecode version
@robfletcher Ranie is working on fix https://github.com/spekframework/spek/pull/471
r
cool
It's interesting it only happens to me in IntelliJ. It's using the same JDK as my terminal so I'm not sure why there's a discrepancy.
it appears that the generation of that volume of logging slows the test run down appreciably!
a
Likely IntelliJ adds something invalid for reflections to the classpath
r
@robfletcher
2.0.0-alpha.2
is out, hopefully it fixes your issue 🤞