Kapt: use descriptorBasedTypeMapping for type mapping

Since all anonymous types are approximated to a supertype in kapt, type
mapping doesn't require backend information (mapping of anonymous types
to class names) and can be performed statically, independently from
particular JVM backend internals, via descriptorBasedTypeMapping.

 #KT-49682
This commit is contained in:
Alexander Udalov
2021-12-08 23:06:06 +01:00
parent 754ad100a9
commit bcd221f714
11 changed files with 41 additions and 25 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// STRICT
//FILE: test/ClassRefAnnotation.java
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// CORRECT_ERROR_TYPES
// STRICT
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// WITH_STDLIB
@file:JvmName("FacadeName")
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class T : Runnable {
@Override
public override fun run() {}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// FILE: androidx/annotation/RecentlyNullable.java
package androidx.annotation;
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// DUMP_DEFAULT_PARAMETER_VALUES
package test
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class Subject {
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
package test
internal class Simple {