Article View: borland.public.jbuilder.java.language
Article #17256Re: class = null ?!
From: Steve Schafer (TeamB)
Date: Sun, 22 Nov 1998 00:00
Date: Sun, 22 Nov 1998 00:00
15 lines
1168 bytes
1168 bytes
On Sun, 22 Nov 1998 22:09:36 +0300, Vladimir Olenin <keenonjava@collegemail.com> wrote: >Recently i ran into an interesting problem. The deal is that i have a >method in class B that returns a class, let call it Data, consisting of >fields only (that is struct in C language). And when i call this method >from class A, the fields of Data class are filled with appropriate >information, but a pointer to it equals null. That is > Data d = B.getData(); // d == null, though d.field1 != null, >d.field2 != null, etc Can you show us the implementation of B.getData() and the declaration of the Data class? -Steve
Technical Details
Message-ID:
<36798e4f.230406438@90.0.0.40>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36586170.A4A677D4@collegemail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6cc14c4eb4d410f7 X-Google-Attributes: gidf74b3,public From: pandeng@telepath.com (Steve Schafer (TeamB)) Subject: Re: class = null ?! Date: 1998/11/22 Message-ID: <36798e4f.230406438@90.0.0.40> X-Deja-AN: 414607607 Content-Transfer-Encoding: 7bit References: <36586170.A4A677D4@collegemail.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