Article View: borland.public.jbuilder.java.api
Article #2090Re: File and line number
From: John McGrath TeamB
Date: Fri, 08 Jun 2001 04:38
Date: Fri, 08 Jun 2001 04:38
18 lines
1465 bytes
1465 bytes
On Thu, 7 Jun 2001 09:30:42 +0100, Steve Holt wrote:
> I've found out how to the the file (well actually the class name)
I am guessing that you are talking about the getClass() method, and I
suspect that will not always give you what you want. Say you have two
classes, B and D, where D is derived from B. If you call getClass()
within one of the methods in class B, but the 'this' object is actually
of class D, getClass will return D, not B.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.158a20c8f815749e98a27c@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b1f2fee$1_2@dnews> <3b1f3bb7$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,a0235f9f622697c7 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-06-07 21:42:50 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: File and line number Date: Fri, 8 Jun 2001 00:38:51 -0400 Message-ID: <MPG.158a20c8f815749e98a27c@forums.borland.com> References: <3b1f2fee$1_2@dnews> <3b1f3bb7$1_1@dnews> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 991975129 209.92.40.60 (7 Jun 2001 21:38:49 -0700) Lines: 18 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews