vineethraj49
09/24/2020, 4:25 PMdata class Test(
val a: String,
val b: String? = null
)
library A; 1.0.5
data class Test(
val a: String,
val b: String? = null,
val c: String? = null
)
library B; 1.0.1
-> library A; [1.0, 2.0) // when built -> 1.0.4
library C;
-> library B; [1.0, 2.0)
-> library A; [1.0, 2.0)
now, when building library C again;
-> library B; [1.0, 2.0) -> 1.0.1
-> library A; [1.0, 2.0) -> 1.0.5
here; given library A; 1.0.5 gets picked; the library C, when running, gives me java.lang.NoSuchMethodError: Test.<init>
when it should've ideally not (I think?)
can someone help me figure out why this is happening, and how I can mitigate this?nanodeath
09/24/2020, 4:27 PMvineethraj49
09/24/2020, 4:28 PMvineethraj49
09/24/2020, 4:28 PMephemient
09/24/2020, 4:37 PMephemient
09/24/2020, 4:38 PMephemient
09/24/2020, 4:39 PM@JvmOverloads
would help with the constructor, but copy()
will still be brokenephemient
09/24/2020, 4:39 PMthanksforallthefish
09/25/2020, 5:39 AM