aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/javassist/CtClassType.java3
-rw-r--r--tutorial/tutorial.html2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/javassist/CtClassType.java b/src/main/javassist/CtClassType.java
index 22b873a6..f4345e0a 100644
--- a/src/main/javassist/CtClassType.java
+++ b/src/main/javassist/CtClassType.java
@@ -1763,8 +1763,7 @@ class CtClassType extends CtClass {
int pos = it.insertEx(initializer.get());
it.insert(initializer.getExceptionTable(), pos);
int maxstack = codeAttr.getMaxStack();
- if (maxstack < stacksize)
- codeAttr.setMaxStack(stacksize);
+ codeAttr.setMaxStack(maxstack + stacksize);
}
private int makeFieldInitializer(Bytecode code, CtClass[] parameters)
diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html
index b8110390..27571da5 100644
--- a/tutorial/tutorial.html
+++ b/tutorial/tutorial.html
@@ -1092,7 +1092,7 @@ They have the same set of methods and fields.
<p>Javassist provides a convenient class for reloading a class at runtime.
For more information, see the API documentation of
-<code>javassist.tools.HotSwapper</code>.
+<code>javassist.util.HotSwapper</code>.
<p><br>