User: rednesto Date: 16 Jul 23 15:41 Revision: 1a8c6c1c255c6aa395a41b28fdda1a9bceb65eb4 Summary: Do not replace dollar signs when followed by a digit Fixes minecraft-dev/mcdev-error-report#205 TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=8640&personal=false Index: src/main/kotlin/platform/mixin/util/AsmUtil.kt =================================================================== --- src/main/kotlin/platform/mixin/util/AsmUtil.kt (revision bf256202050a98b8afa2495aea17685e02e406c2) +++ src/main/kotlin/platform/mixin/util/AsmUtil.kt (revision 1a8c6c1c255c6aa395a41b28fdda1a9bceb65eb4) @@ -128,7 +128,8 @@ } fun Type.toPsiType(elementFactory: PsiElementFactory, context: PsiElement? = null): PsiType { - return elementFactory.createTypeFromText(className.replace('$', '.'), context) + val javaClassName = className.replace("(\\$)(\\D)".toRegex()) { "." + it.groupValues[2] } + return elementFactory.createTypeFromText(javaClassName, context) } private fun hasAccess(access: Int, flag: Int) = (access and flag) != 0