So many VerifyError bugs in :youtrack: ... With 1....
# android
m
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
miha-x64: got something a little close to this. Are you using method reference by any chance?
m
Seems like no, only property references in inline functions, e. g.
.associateByTo(dest, User::extId)
k
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
@kingsley nothing changed. Verifier don't like this property getter:
Copy code
private val Account?.service get() = services.getOrPutWeak(this) { ReturnType(env, this@SomeClass, this) }