mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-22 01:32:12 +00:00
Resolve anonymous inner classes in AP via classpath + ASM where possible
Fixes #518
This commit is contained in:
1 parent
a9581dd7d9
commit
1e1aa7fb52
24 files changed
+606
-79
No files matched your search
+5
-2
@@ -34,6 +34,7 @@ import org.spongepowered.tools.obfuscation.Mappings.MappingConflictException;
|
||||
import org.spongepowered.tools.obfuscation.interfaces.IMessagerEx.MessageType;
|
||||
import org.spongepowered.tools.obfuscation.interfaces.IMixinAnnotationProcessor;
|
||||
import org.spongepowered.tools.obfuscation.mirror.AnnotationHandle;
|
||||
import org.spongepowered.tools.obfuscation.mirror.MethodHandle;
|
||||
import org.spongepowered.tools.obfuscation.mirror.TypeHandle;
|
||||
|
||||
/**
|
||||
@@ -63,8 +64,10 @@ class AnnotatedMixinElementHandlerOverwrite extends AnnotatedMixinElementHandler
|
||||
super(ap, mixin);
|
||||
}
|
||||
|
||||
public void registerMerge(ExecutableElement method) {
|
||||
this.validateTargetMethod(method, null, new AliasedElementName(method, AnnotationHandle.MISSING), "overwrite", true, true);
|
||||
public void registerMerge(MethodHandle method) {
|
||||
if (!method.isImaginary()) {
|
||||
this.validateTargetMethod(method.getElement(), null, new AliasedElementName(method, AnnotationHandle.MISSING), "overwrite", true, true);
|
||||
}
|
||||
}
|
||||
|
||||
public void registerOverwrite(AnnotatedElementOverwrite elem) {
|
||||
|
||||
Reference in new issue
Block a user