Coping methods
Stephen Kolaroff <[email protected]>
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi
I noticed that when a MethodGen is copied from one class (One) to
another (Another), all references to this are left unchanged:
class One {
int field;
void putfield() {
field = 10
}
}
after copy of the putfield() method to Another I get smth like (I am
decompiling by hand):
class Another {
//....
void putfield() {
One one;
one = this;
one.field = 10;
}
}
which makes the JVM verifier nervous.
Is that way of copy feature or a bug. If a bug, will it be fixed soon/
would you receive patch.
Regards
Cheffo