I'm curious how the jdk embeds debug symbols in .class files. Can
anyone recommed a good resource for that, either on the web or in book
form? Is there a standard API for determining things like "which ctor
is being called on line X, col Y of file Z.java?"
Thomas Hawtin - 19 Sep 2005 00:26 GMT
> I'm curious how the jdk embeds debug symbols in .class files. Can
> anyone recommed a good resource for that, either on the web or in book
It's all in the JVM spec.
http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#79868
> form? Is there a standard API for determining things like "which ctor
> is being called on line X, col Y of file Z.java?"
Not as far as I know. Editors tend to do that sort of thing without full
compilation. I'm sure it'd be quite easy to do from class files with,
say, ObjectWeb ASM.
Tom Hawtin

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
Roedy Green - 19 Sep 2005 00:40 GMT
>I'm curious how the jdk embeds debug symbols in .class files. Can
>anyone recommed a good resource for that, either on the web or in book
>form? Is there a standard API for determining things like "which ctor
>is being called on line X, col Y of file Z.java?"
check out JPDA. It in an interface for people want to write source
code debuggers.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.