https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
d

Dmitry Stakhov

04/02/2024, 10:37 AM
Sorry, another case in our code 😅
Copy code
import sun.security.x509.X509CertImpl
import sun.security.x509.X509CertInfo
...
val info = X509CertInfo().apply {
   set(X509CertInfo.VALIDITY, interval)
   ...
}

return X509CertImpl(info)
K1 works K2 throws compilation errors:
Copy code
Unresolved reference 'set'.
None of the following candidates is applicable:
constructor(p0: ByteArray!): X509CertImpl
constructor(p0: DerValue!): X509CertImpl
constructor(p0: InputStream!): X509CertImpl
d

dmitriy.novozhilov

04/02/2024, 10:46 AM
Could you please provide more detailed sample? At least containing function/class with this code
d

Dmitry Stakhov

04/02/2024, 10:55 AM
Sent in DM 😅
2 Views