RE: Source code for a particular instruction
Paul McLachlan <pmclachlan <at> mercury.com>
2004-11-09 17:01:05 GMT
This information is not available in a standard javac compiled class file.
I'm not sure if it's even available via JSR-45, which would be the only other possible place you could look:
But, I have seem some custom JSP vendors (I forget who, it was one of the niche players), back before the days
of JSR-45, with a debugger that used information like this - I'm sure they were compiling it in themselves
though, not to a standard.
Bad news, sorry.
From: Raghu L [mailto:raghul <at> gmail.com]
Sent: Tuesday, November 09, 2004 2:11 AM
To: BCEL Users List
Subject: Re: Source code for a particular instruction
U guys miss understood my question. I want with out using any
decompiler(they use reverse enginnering I guess). I have source code
and bytecode I want to know for a specific instruction in the
instruction list the corresponding source code. For example we can
know the line number of a instruction in the source code by using
LinenumberTable. Can we get exact position in the line which has
produced the instruction.