aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/web/Webserver.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/web/Webserver.java')
-rw-r--r--src/main/javassist/web/Webserver.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/web/Webserver.java b/src/main/javassist/web/Webserver.java
index 120646e2..ad1adc77 100644
--- a/src/main/javassist/web/Webserver.java
+++ b/src/main/javassist/web/Webserver.java
@@ -337,10 +337,10 @@ public class Webserver {
String classname
= filename.substring(0, length - 6).replace('/', '.');
try {
- CtClass c = classPool.get(classname);
if (translator != null)
- translator.onWrite(classPool, c);
+ translator.onLoad(classPool, classname);
+ CtClass c = classPool.get(classname);
classfile = c.toBytecode();
if (debugDir != null)
c.writeFile(debugDir);