Re: oops, didn't work.....how to use bcel to tell if class was compiled with -g option?

"Dave Brosius" <[email protected]>
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <002001c4fb7f$125b7ae0$617596d1@MBFG>
Code.getMaxLocals()


----- Original Message ----- 
From: "Dean Hiller" <[email protected]>
To: "BCEL Users List" <[email protected]>
Sent: Saturday, January 15, 2005 2:22 PM
Subject: oops, didn't work.....how to use bcel to tell if class was compiled 
with -g option?


> 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]
>
>
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.