diff options
| author | 2019-05-10 22:21:11 +0200 | |
|---|---|---|
| committer | 2019-05-10 22:21:11 +0200 | |
| commit | 75f383a1956eb19fc838ea647a7e7b24552324cf (patch) | |
| tree | d0aa11a90110b60404f40a5f7f39704598491585 /src/main/java/cuchaz/enigma/bytecode | |
| parent | Use our procyon to fix compiler issues (#128) (diff) | |
| download | enigma-fork-75f383a1956eb19fc838ea647a7e7b24552324cf.tar.gz enigma-fork-75f383a1956eb19fc838ea647a7e7b24552324cf.tar.xz enigma-fork-75f383a1956eb19fc838ea647a7e7b24552324cf.zip | |
Don't remap specialized methods to their bridge partner in bytecode
Diffstat (limited to 'src/main/java/cuchaz/enigma/bytecode')
| -rw-r--r-- | src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java b/src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java index 99eef6a..735a65f 100644 --- a/src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java +++ b/src/main/java/cuchaz/enigma/bytecode/translators/SourceFixVisitor.java | |||
| @@ -4,7 +4,6 @@ import cuchaz.enigma.analysis.index.BridgeMethodIndex; | |||
| 4 | import cuchaz.enigma.analysis.index.JarIndex; | 4 | import cuchaz.enigma.analysis.index.JarIndex; |
| 5 | import cuchaz.enigma.translation.representation.entry.ClassDefEntry; | 5 | import cuchaz.enigma.translation.representation.entry.ClassDefEntry; |
| 6 | import cuchaz.enigma.translation.representation.entry.MethodDefEntry; | 6 | import cuchaz.enigma.translation.representation.entry.MethodDefEntry; |
| 7 | import cuchaz.enigma.translation.representation.entry.MethodEntry; | ||
| 8 | import org.objectweb.asm.ClassVisitor; | 7 | import org.objectweb.asm.ClassVisitor; |
| 9 | import org.objectweb.asm.MethodVisitor; | 8 | import org.objectweb.asm.MethodVisitor; |
| 10 | import org.objectweb.asm.Opcodes; | 9 | import org.objectweb.asm.Opcodes; |
| @@ -31,11 +30,6 @@ public class SourceFixVisitor extends ClassVisitor { | |||
| 31 | BridgeMethodIndex bridgeIndex = index.getBridgeMethodIndex(); | 30 | BridgeMethodIndex bridgeIndex = index.getBridgeMethodIndex(); |
| 32 | if (bridgeIndex.isBridgeMethod(methodEntry)) { | 31 | if (bridgeIndex.isBridgeMethod(methodEntry)) { |
| 33 | access |= Opcodes.ACC_BRIDGE; | 32 | access |= Opcodes.ACC_BRIDGE; |
| 34 | } else { | ||
| 35 | MethodEntry bridgeMethod = bridgeIndex.getBridgeFromAccessed(methodEntry); | ||
| 36 | if (bridgeMethod != null) { | ||
| 37 | name = bridgeMethod.getName(); | ||
| 38 | } | ||
| 39 | } | 33 | } |
| 40 | 34 | ||
| 41 | return super.visitMethod(access, name, descriptor, signature, exceptions); | 35 | return super.visitMethod(access, name, descriptor, signature, exceptions); |