Question...How do I tell if there are local variables before looking for a LocalVariableTable?
oops, actually, it didn't seem to work as I think some methods don't have a LocalVariableTable probably because they have no local variables....I guess I actually need to find out if there is local variables(how do I do this?) and then look for a LocalVariableTable. If the LocalVariableTable is null when there are local variables present, I then know -g was not used on that file....If there are no local variables in the file, I actually don't care if -g wasn't used then. thanks, dean ----- Original Message ----- From: "Dave Brosius" <[EMAIL PROTECTED]> To: "BCEL Users List" <[email protected]> Sent: Thursday, January 13, 2005 9:13 PM Subject: Re: how to use bcel to tell if class was compiled with -g option? > iirc, From the visitCode(Code obj), you can call on the code object > > getLineNumberTable() > getLocalVariableTable() > > if these two return non null objects, then -g was probably used. > > > From: "Dean Hiller" <[EMAIL PROTECTED]> > To: "BCEL Users List" <[email protected]> > Sent: Thursday, January 13, 2005 11:01 PM > Subject: how to use bcel to tell if class was compiled with -g option? > > > What is an easy way to programatically tell if the class file was compiled > with javac's -g option? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
