🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Line numbers in source files

#18101
From: Douglas Ahlquist
Date: Wed, 19 Aug 1998 00:00
25 lines
1479 bytes
I have been scratching my head about this for awhile.
I need to access line numbers in a java source file during run time.
This is simple to do in C/C++ with the __LINE__ marco.

In java I may have to write something using the LineNumberInptStream
insert the line number into my code.  messy.

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.

ARG.... Help

--

���`����,��,�`����`����,��,�`�����`������`����`����,��,

    Douglas K. Ahlquist
    netDialog, Inc.,     Sr. Quality Assurance Developer
    dahlquist@netidalog.com
    douglas_@ix.netcom.com
    (650)-372-1421 office

,��,�`����`����,��,�`�����`������`����`����,��,�`���
Technical Details
Message-ID: <35DB721E.DDFDBD49@ix.netcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,638fbe9d5568e08f,start
X-Google-Attributes: gidf74b3,public
From: Douglas Ahlquist <douglas_@ix.netcom.com>
Subject: Line numbers in source files
Date: 1998/08/19
Message-ID: <35DB721E.DDFDBD49@ix.netcom.com>
X-Deja-AN: 382825111
Content-Transfer-Encoding: 8bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language