---
title: "使用AOP带来的问题"
author: "cherami"
date: "2007-08-02T04:57:34Z"
tags: []
slug: "aop"
draft: false
lastmod: "2007-08-02T04:57:34Z"
id: 108365
url: "https://cherami.iteye.com/blog/108365"
---

AOP绝对是个好东西，但是因为大部分的AOP实现都是通过修改字节码实现的，这就给Hot Deploy带来问题，在进行Hot Code Replace的时候JVM会抛错：Hot code replace failed - Hierarchy change not implemented，根据字面的意思，我猜测是JVM判断出原始的字节码有变化，但是JVM中的字节码是修改过的，类似子类的结构。目前还没有找到比较权威的解释，另外我对AOP也不是很熟悉，所以仅仅是猜测![](/FCKeditor/editor/images/smiley/msn/tounge_smile.gif)

作者: [解惑/Cherami](http://www.jiehoo.com)  
原载: [使用AOP带来的问题](http://www.jiehoo.com/%e4%bd%bf%e7%94%a8aop%e5%b8%a6%e6%9d%a5%e7%9a%84%e9%97%ae%e9%a2%98.htm)  
**版权所有。转载时必须以链接形式注明作者和原始出处及本声明。**  
分类: [Java](http://www.jiehoo.com/category/java/ "显示Java的所有文章")