Skip to content

Commit b72a700

Browse files
committed
Don't treat all method references as if they have a synthetic method
1 parent 92368e6 commit b72a700

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/kotlin/platform/mixin/util/AsmUtil.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import com.demonwav.mcdev.util.findMethods
3030
import com.demonwav.mcdev.util.findModule
3131
import com.demonwav.mcdev.util.findQualifiedClass
3232
import com.demonwav.mcdev.util.fullQualifiedName
33+
import com.demonwav.mcdev.util.hasSyntheticMethod
3334
import com.demonwav.mcdev.util.isErasureEquivalentTo
3435
import com.demonwav.mcdev.util.lockedCached
3536
import com.demonwav.mcdev.util.loggerForTopLevel
@@ -744,8 +745,10 @@ private fun findAssociatedLambda(psiClass: PsiClass, clazz: ClassNode, lambdaMet
744745
// walk inside the reference first, visits the qualifier first (it's first in the bytecode)
745746
super.visitMethodReferenceExpression(expression)
746747

747-
if (matcher.accept(expression)) {
748-
stopWalking()
748+
if (expression.hasSyntheticMethod) {
749+
if (matcher.accept(expression)) {
750+
stopWalking()
751+
}
749752
}
750753
}
751754
},

0 commit comments

Comments
 (0)