When using ConTest with on-the-fly instrumentation, I'm getting a "Bad access to protected data" error. Here is the situation:
Jar A:
package foo;
class MySuperClass {
protected myMethod() {};
}
Jar B:
package bar;
class MySubClass extends MySuperClass {
protected myMethod() {};
}
Is the error because the ConTest java agent causes MySuperClass and MySubClass to be loaded with different classloaders?
Is there any way to work around this problem (preferably without using static instrumentation)?