You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 14, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 14, 2019. It is now read-only.
Avoid external class dependency for injected classloader #17
Activity
zhongl commentedon Jun 1, 2012
实际应用中, 运行着的Java生产系统中会存在不遵守“双亲委派”原则的自定义ClassLoader, 它们会造成retransform的class中引入的新class找不到。
为避免这个问题, 可以将要引入的class(如,AdviceProxy)的字节码, 人为的在目标ClassLoader进行定义,并使用反射注入Advice的实例, 即下面伪代码片段:
为保证这个思路简单可行, 有个原则是:
@see https://gist.github.com/2849396
Fixed #6 #8 #13 #14 #16 #17
Milestone 0.2.0.
Fixed #6 #8 #13 #14 #16 #17