Use new ClassGeneratorExtension EP in jvm-abi-gen

This commit is contained in:
Alexander Udalov
2023-03-04 00:49:25 +01:00
parent fba5b96bef
commit f4b4922a13
3 changed files with 30 additions and 49 deletions
@@ -25,7 +25,8 @@ import org.jetbrains.org.objectweb.asm.FieldVisitor
import org.jetbrains.org.objectweb.asm.MethodVisitor
import org.jetbrains.org.objectweb.asm.RecordComponentVisitor
// Loads an converts deprecated ClassBuilderInterceptorExtension implementations to the new ClassGeneratorExtension EP.
// Loads ClassGeneratorExtension implementations and converts them to deprecated ClassBuilderInterceptorExtension implementations,
// so that GenerationState (which is backend-agnostic) can apply them during class generation.
@Suppress("unused") // Used reflectively in GenerationState.
internal object ClassBuilderExtensionAdapter {
@JvmStatic