Update bundled ASM to 5.2

This commit is contained in:
Mumfrey committed 2017-07-11 19:05:21 +01:00
1 parent 39c84ccac6
commit d84212a1b6
4 files changed
+19 -13

No files matched your search

@@ -37,7 +37,7 @@ import org.spongepowered.asm.lib.ClassVisitor;
import org.spongepowered.asm.lib.ClassWriter;
import org.spongepowered.asm.lib.Opcodes;
import org.spongepowered.asm.lib.commons.Remapper;
import org.spongepowered.asm.lib.commons.RemappingClassAdapter;
import org.spongepowered.asm.lib.commons.ClassRemapper;
import org.spongepowered.asm.mixin.transformer.ClassInfo.Method;
import org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException;
@@ -162,7 +162,7 @@ final class InnerClassGenerator implements IClassGenerator {
* Just a basic remapping adapter, but we also decorate the transformed
* class with a meta annotation describing the original class.
*/
static class InnerClassAdapter extends RemappingClassAdapter {
static class InnerClassAdapter extends ClassRemapper {
private final InnerClassInfo info;
@@ -241,7 +241,8 @@ public abstract class MemberRef {
if (tag == 0) {
throw new MixinTransformerError("Invalid opcode " + Bytecode.getOpcodeName(opcode) + " for method handle " + this.handle + ".");
}
this.handle = new org.spongepowered.asm.lib.Handle(tag, this.handle.getOwner(), this.handle.getName(), this.handle.getDesc());
boolean itf = tag == Opcodes.H_INVOKEINTERFACE;
this.handle = new org.spongepowered.asm.lib.Handle(tag, this.handle.getOwner(), this.handle.getName(), this.handle.getDesc(), itf);
}
@Override
@@ -251,7 +252,8 @@ public abstract class MemberRef {
@Override
public void setOwner(String owner) {
this.handle = new org.spongepowered.asm.lib.Handle(this.handle.getTag(), owner, this.handle.getName(), this.handle.getDesc());
boolean itf = this.handle.getTag() == Opcodes.H_INVOKEINTERFACE;
this.handle = new org.spongepowered.asm.lib.Handle(this.handle.getTag(), owner, this.handle.getName(), this.handle.getDesc(), itf);
}
@Override
@@ -261,7 +263,8 @@ public abstract class MemberRef {
@Override
public void setName(String name) {
this.handle = new org.spongepowered.asm.lib.Handle(this.handle.getTag(), this.handle.getOwner(), name, this.handle.getDesc());
boolean itf = this.handle.getTag() == Opcodes.H_INVOKEINTERFACE;
this.handle = new org.spongepowered.asm.lib.Handle(this.handle.getTag(), this.handle.getOwner(), name, this.handle.getDesc(), itf);
}
@Override
@@ -271,7 +274,8 @@ public abstract class MemberRef {
@Override
public void setDesc(String desc) {
this.handle = new org.spongepowered.asm.lib.Handle(this.handle.getTag(), this.handle.getOwner(), this.handle.getName(), desc);
boolean itf = this.handle.getTag() == Opcodes.H_INVOKEINTERFACE;
this.handle = new org.spongepowered.asm.lib.Handle(this.handle.getTag(), this.handle.getOwner(), this.handle.getName(), desc, itf);
}
}
@@ -43,6 +43,7 @@ public abstract class Constants {
public static final String CLASS = "Ljava/lang/Class;";
public static final String SYNTHETIC_PACKAGE = "org.spongepowered.asm.synthetic";
public static final char UNICODE_SNOWMAN = '\u2603';
private Constants() {}