[강운덕] [LUCYSUS-1744] was에서 class를 reloading할 경우 오류 수정.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1157 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2013-02-06 06:33:45 +00:00
parent 02625b0b59
commit 55f70e037b
2 changed files with 6 additions and 3 deletions
@@ -428,7 +428,9 @@ public class JavaAssistClass implements InstrumentClass {
@Override
public byte[] toBytecode() {
try {
return ctClass.toBytecode();
byte[] bytes = ctClass.toBytecode();
ctClass.detach();
return bytes;
} catch (IOException e) {
logger.log(Level.INFO, "IoException class:" + ctClass.getName() + " " + e.getMessage(), e);
} catch (CannotCompileException e) {