puniverse / quasar

Fibers, Channels and Actors for the JVM
http://docs.paralleluniverse.co/quasar/
Other
4.56k stars 575 forks source link

added workaround for https://youtrack.jetbrains.com/issue/KT-30289 #339

Open woggioni opened 4 years ago

woggioni commented 4 years ago

this should fix quasar issue with Kotlin 1.3, the idea is to instrument any static synthetic method whose name ends with $default if it comes after a suspendable method with the same name (except for the $default suffix) and a similar signature (more details about it will follow).

I did some manual testing and it seems to work, it relies on the fact that the Kotlin compiler writes the $default methods only after their base counterparts (which could be problematic since, although this is the current behavior, there is no guarantee around its stability).