Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Auto-detecting classloading problem #14

Closed
zhongl opened this issue Jun 1, 2012 · 1 comment
Closed

Auto-detecting classloading problem #14

zhongl opened this issue Jun 1, 2012 · 1 comment
Assignees
Milestone

Comments

@zhongl
Copy link
Member

zhongl commented Jun 1, 2012

No description provided.

@zhongl
Copy link
Member Author

zhongl commented Jun 1, 2012

思路是:

val name = classOf[AdviceProxy].getName
val bytes = bytecodeOfClass(name)

allCandidateClasses foreach { c =>
  val classLoader = c.getClassLoader
  try { 
    classLoader.loadClass(name)
  } catch {
    case _ =>  classLoader.defineClass(bytes, 0, bytes.length)
}

zhongl pushed a commit that referenced this issue Jun 7, 2012
@zhongl zhongl closed this as completed Jun 7, 2012
zhongl pushed a commit that referenced this issue Jun 18, 2012
zhongl pushed a commit that referenced this issue Jun 19, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant