I ran into a problem I just cannot understand. The problem seems isolated to the BytecodeEnhancerRunner JUnit Runner we use to test enhancement, though I cannot explain it. Hoping someone can help?
If not, I think I’ll take you up on your offer Rafael. What confuses me is that ByteBuddy does not load Class references into any classloader, so I am not sure how using ByteBuddy has this affect at all. The basic change I made is, when enhancing a class (Enhancer#enhance):
- Load its super TypeDescription ref, if one
- Load its FieldDescription refs
- Load its MethodDescription refs
|