Kapt: Do not replace '/' with dots before converting to fqName (KT-19680)

getQualifiedName() converts slashes by itself, and it causes the internal name equality check (it.name == classFromSources.name) to fail.
This reproduces only for the pure synthetic classes (for which we don't generate Java light classes).
This commit is contained in:
Yan Zhulanow
2017-08-16 02:23:24 +03:00
committed by Yan Zhulanow
parent fe3413c291
commit cea891c754
@@ -43,7 +43,7 @@ class KaptTreeMaker(context: Context, private val kaptContext: KaptContext<*>) :
}
fun FqName(internalOrFqName: String): JCTree.JCExpression {
val path = getQualifiedName(internalOrFqName.replace('/', '.')).convertSpecialFqName().split('.')
val path = getQualifiedName(internalOrFqName).convertSpecialFqName().split('.')
assert(path.isNotEmpty())
if (path.size == 1) return SimpleName(path.single())