https://kotlinlang.org logo
Title
m

miha-x64

04/02/2017, 6:27 PM
So many VerifyError bugs in :youtrack: ... With 1.1.2-eap-44 I'm getting java.lang.VerifyError: Verifier rejected class SomeClass: ReturnType method(Parameter) failed to verify: SomeClass method(parameter): [0x22] returning 'Reference: java.lang.Object', but expected from declaration 'Precise Reference: ReturnType' (declaration of 'SomeClass' appears in /data/app/package-1/base.apk) Anyone else?
k

kingsley

04/02/2017, 6:43 PM
miha-x64: got something a little close to this. Are you using method reference by any chance?
m

miha-x64

04/02/2017, 6:45 PM
Seems like no, only property references in inline functions, e. g.
.associateByTo(dest, User::extId)
k

kingsley

04/02/2017, 6:47 PM
miha-x64: okay. This error came up for me once when I tried such reference with a generic property. Try changing the
User::extId
to a lambda instead. That should fix it
m

miha-x64

04/02/2017, 6:56 PM
@kingsley nothing changed. Verifier don't like this property getter:
private val Account?.service get() = services.getOrPutWeak(this) { ReturnType(env, this@SomeClass, this) }