Gopal S Akshintala
08/31/2021, 5:44 AMCollectionsKt
method directly in java and run this in a unit test. However this static import is causing this exception
import static kotlin.collections.CollectionsKt.chunked;
However, if I use CollectionsKt.chunked(…)
without the static import, I don’t get this exception:
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