summaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CodeConverter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/CodeConverter.java')
-rw-r--r--src/main/javassist/CodeConverter.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/javassist/CodeConverter.java b/src/main/javassist/CodeConverter.java
index 8873e560..399454ec 100644
--- a/src/main/javassist/CodeConverter.java
+++ b/src/main/javassist/CodeConverter.java
@@ -532,6 +532,14 @@ public class CodeConverter {
if (stack > 0)
codeAttr.setMaxStack(codeAttr.getMaxStack() + stack);
+
+ try {
+ minfo.rebuildStackMapIf6(clazz.getClassPool(),
+ clazz.getClassFile2());
+ }
+ catch (BadBytecode b) {
+ throw new CannotCompileException(b.getMessage(), b);
+ }
}
/**