Can someone help me understand what does this exce...
# javadevelopers
g
Can someone help me understand what does this exception mean. I am trying to use
CollectionsKt
method directly in java and run this in a unit test. However this static import is causing this exception
Copy code
import static kotlin.collections.CollectionsKt.chunked;
However, if I use
CollectionsKt.chunked(…)
without the static import, I don’t get this exception:
Copy code
java.lang.IllegalAccessError: failed to access class kotlin.collections.CollectionsKt___CollectionsKt from class billing.batch.invoice.services.tax.TaxIntegrator (kotlin.collections.CollectionsKt___CollectionsKt and billing.batch.invoice.services.tax.TaxIntegrator are in unnamed module of loader org.powermock2.core.classloader.javassist.JavassistMockClassLoader @5443d039)
Slack Conversation