diff options
| author | 2015-03-16 12:29:17 -0400 | |
|---|---|---|
| committer | 2015-03-16 12:29:17 -0400 | |
| commit | c133e05b786ff5357931842581571c046f958c74 (patch) | |
| tree | 9fc998ac7b85828f3b57f04600244c6a79b2b2e8 /src/cuchaz/enigma/bytecode/InnerClassWriter.java | |
| parent | Added tag v0.9 beta for changeset 856528c00d1c (diff) | |
| download | enigma-fork-c133e05b786ff5357931842581571c046f958c74.tar.gz enigma-fork-c133e05b786ff5357931842581571c046f958c74.tar.xz enigma-fork-c133e05b786ff5357931842581571c046f958c74.zip | |
fix a zillion issues with inner classes
Diffstat (limited to '')
| -rw-r--r-- | src/cuchaz/enigma/bytecode/InnerClassWriter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cuchaz/enigma/bytecode/InnerClassWriter.java b/src/cuchaz/enigma/bytecode/InnerClassWriter.java index dd21a78..976028d 100644 --- a/src/cuchaz/enigma/bytecode/InnerClassWriter.java +++ b/src/cuchaz/enigma/bytecode/InnerClassWriter.java | |||
| @@ -93,7 +93,7 @@ public class InnerClassWriter { | |||
| 93 | 93 | ||
| 94 | // get the new inner class name | 94 | // get the new inner class name |
| 95 | ClassEntry obfInnerClassEntry = obfClassEntry.buildClassEntry(obfClassChain); | 95 | ClassEntry obfInnerClassEntry = obfClassEntry.buildClassEntry(obfClassChain); |
| 96 | ClassEntry obfOuterClassEntry = obfInnerClassEntry.getOuterClassEntry(); | 96 | ClassEntry obfOuterClassEntry = obfInnerClassEntry.getOutermostClassEntry(); |
| 97 | 97 | ||
| 98 | // here's what the JVM spec says about the InnerClasses attribute | 98 | // here's what the JVM spec says about the InnerClasses attribute |
| 99 | // append(inner, parent, 0 if anonymous else simple name, flags); | 99 | // append(inner, parent, 0 if anonymous else simple name, flags); |
| @@ -105,7 +105,7 @@ public class InnerClassWriter { | |||
| 105 | int innerClassNameIndex = 0; | 105 | int innerClassNameIndex = 0; |
| 106 | int accessFlags = 0; | 106 | int accessFlags = 0; |
| 107 | if (!m_index.isAnonymousClass(obfClassEntry)) { | 107 | if (!m_index.isAnonymousClass(obfClassEntry)) { |
| 108 | innerClassNameIndex = constPool.addUtf8Info(obfInnerClassEntry.getInnerClassName()); | 108 | innerClassNameIndex = constPool.addUtf8Info(obfInnerClassEntry.getInnermostClassName()); |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | attr.append(innerClassIndex, parentClassIndex, innerClassNameIndex, accessFlags); | 111 | attr.append(innerClassIndex, parentClassIndex, innerClassNameIndex, accessFlags); |