From 4b66a88014d7717d5e4ea33accd75ce659463a96 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 7 May 1999 22:55:46 +0000 Subject: [PATCH] bug fix: reserve all outer/inner field class names git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@795 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/bytecode/ClassInfo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jode/jode/bytecode/ClassInfo.java b/jode/jode/bytecode/ClassInfo.java index 160ceb0..182fb6f 100644 --- a/jode/jode/bytecode/ClassInfo.java +++ b/jode/jode/bytecode/ClassInfo.java @@ -308,6 +308,7 @@ public class ClassInfo extends BinaryInfo { gcp.putUTF8("InnerClasses"); int outerCount = outerClasses != null ? outerClasses.length : 0; for (int i=outerCount; i-- > 0;) { + gcp.putClassName(outerClasses[i].inner); if (outerClasses[i].outer != null) gcp.putClassName(outerClasses[i].outer); if (outerClasses[i].name != null) @@ -316,6 +317,8 @@ public class ClassInfo extends BinaryInfo { int innerCount = innerClasses != null ? innerClasses.length : 0; for (int i=0; i< innerCount; i++) { gcp.putClassName(innerClasses[i].inner); + if (innerClasses[i].outer != null) + gcp.putClassName(innerClasses[i].outer); if (innerClasses[i].name != null) gcp.putUTF8(innerClasses[i].name); }