This week's book giveaway is in the Testing forum. We're giving away four copies of Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples and have Jeremy Kubica on-line! See this thread for details.
Hi. I'm using the tool javassist to do some bytecode manipulation of some class files. I would like to manipulate the code of java.lang.Thread, but the problem is I don't know the source I want to inject until after it is already loaded by the classloader. The code I inject depends on some custom classes that get loaded once my application starts. Is there a way to inject the code into the java.lang.Thread class after it has already been loaded by the classloader? Thanks.