how to use bcel to tell if class was compiled with -g option?
"Dean Hiller" <[email protected]>
| Newsgroups | gmane.comp.jakarta.bcel.user |
|---|---|
| Message-ID | <[email protected]> |
What is an easy way to programatically tell if the class file was compiled with javac's -g option?
In particular, if I have this code
public void method() {
FakeClass c = null;
//or something like below....
FakeClass c = Factory.create();
}
With debug on, visitLocalVariable is called, when the class is compiled without it on, visitLocalVariable is not called, but is there an easier way to tell this like when I get all the instructions from the method, could I go through and look for an one of these...
aconst_null[1](1)
astore_1[76](1)
And if I find one, what would I do?
thanks for any help on this. This is my last hurdle,
thanks,
dean