🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18015

Re: Line numbers in source files

#18015
From: Steve Schafer (TeamB)
Date: Thu, 20 Aug 1998 00:00
17 lines
1269 bytes
On Wed, 19 Aug 1998 17:47:27 -0700, Douglas Ahlquist
<douglas_@ix.netcom.com> wrote:

>I know the when you print a stack trace after an exception is thrown the
>line number is part of the out put.
>Also I have heard that the line number is part of the dubug class file.
>How does one utilize this.

If the .java source was compiled with debug information included,
there is a table inside the .class file that correlates bytecode
ranges with source line numbers. That doesn't sound like exactly what
you're looking for, but it's probably the best that you can do.

For information on the format of .class files, take a look at _The
Java Virtual Machine Specification_, ISBN 0-201-63452-X.

-Steve
Technical Details
Message-ID: <35e18053.33462997@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35DB721E.DDFDBD49@ix.netcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,638fbe9d5568e08f
X-Google-Attributes: gidf74b3,public
From: pandeng@telepath.com (Steve Schafer (TeamB))
Subject: Re: Line numbers in source files
Date: 1998/08/20
Message-ID: <35e18053.33462997@forums.borland.com>
X-Deja-AN: 382844218
Content-Transfer-Encoding: 7bit
References: <35DB721E.DDFDBD49@ix.netcom.com>
Content-Type: text/plain; charset=us-ascii
Organization: TeamB
Mime-Version: 1.0
Reply-To: pandeng@telepath.com
Newsgroups: borland.public.jbuilder.java.language