The relocation of method signatures in @Metadata annotation fails if there is a primitive argument before a relocating class, such as void method(boolean a, SomeClass b) whose descriptor is (ZLorg/package/SomeClass;)V which fails the regex ([\\[()]*)?L([^;]+);?.
Modifying the regex to tolerate primitive descriptors, such as ([\[()BCDFIJSZ]*)?L([^;]+);? (see 4.3.2 of https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html), should fix this.
Originally posted by @phinner in xpdustry/kotlin-shadow-relocator#30 (comment)