summaryrefslogtreecommitdiff
path: root/src/main/java/cuchaz/enigma/bytecode
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cuchaz/enigma/bytecode')
-rw-r--r--src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java b/src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java
index 735a65f..d672622 100644
--- a/src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java
+++ b/src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java
@@ -4,6 +4,7 @@ import cuchaz.enigma.analysis.index.BridgeMethodIndex;
4import cuchaz.enigma.analysis.index.JarIndex; 4import cuchaz.enigma.analysis.index.JarIndex;
5import cuchaz.enigma.translation.representation.entry.ClassDefEntry; 5import cuchaz.enigma.translation.representation.entry.ClassDefEntry;
6import cuchaz.enigma.translation.representation.entry.MethodDefEntry; 6import cuchaz.enigma.translation.representation.entry.MethodDefEntry;
7import cuchaz.enigma.translation.representation.entry.MethodEntry;
7import org.objectweb.asm.ClassVisitor; 8import org.objectweb.asm.ClassVisitor;
8import org.objectweb.asm.MethodVisitor; 9import org.objectweb.asm.MethodVisitor;
9import org.objectweb.asm.Opcodes; 10import org.objectweb.asm.Opcodes;
@@ -30,6 +31,8 @@ public class SourceFixVisitor extends ClassVisitor {
30 BridgeMethodIndex bridgeIndex = index.getBridgeMethodIndex(); 31 BridgeMethodIndex bridgeIndex = index.getBridgeMethodIndex();
31 if (bridgeIndex.isBridgeMethod(methodEntry)) { 32 if (bridgeIndex.isBridgeMethod(methodEntry)) {
32 access |= Opcodes.ACC_BRIDGE; 33 access |= Opcodes.ACC_BRIDGE;
34 } else if (bridgeIndex.isSpecializedMethod(methodEntry)) {
35 name = bridgeIndex.getBridgeFromSpecialized(methodEntry).getName();
33 } 36 }
34 37
35 return super.visitMethod(access, name, descriptor, signature, exceptions); 38 return super.visitMethod(access, name, descriptor, signature, exceptions);