oops, didn't work.....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]>
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]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.