AP: Fix several cases of ASM TypeHandles breaking code that relies on Mirror.

This commit is contained in:
LlamaLad7 authored and modmuss50 committed 2023-02-15 22:16:19 +00:00
1 parent c33a48ba5e
commit e5d9db491a
11 files changed
+110 -104

No files matched your search

@@ -176,7 +176,7 @@ class AnnotatedMixin implements IMixinContext, IAnnotatedElement {
this.mappings = this.obf.createMappingConsumer();
this.messager = ap;
this.mixin = type;
this.handle = new TypeHandle(type);
this.handle = new TypeHandle(type, ap.getTypeProvider());
this.methods = new ArrayList<MethodHandle>(this.handle.getMethods());
this.virtual = this.handle.getAnnotation(Pseudo.class).exists();
this.annotation = this.handle.getAnnotation(Mixin.class);