From: "Plapp, Phillip" <phillip.plapp@hp.com>
To: <gcc-help@gcc.gnu.org>
Subject: gcj
Date: Tue, 27 Apr 2004 15:24:00 -0000 [thread overview]
Message-ID: <242175EA3C8D3045B8D77EE70A063DB50295F211@bbnexc02.emea.cpqcorp.net> (raw)
Hello GNU guys,
I have a question concerning GCJ, CNI and nested java classes. The
following is my java class scenario in
which class A contains an instance of a nested class B:
Class A
{
B b;
Class B
{
int getSize();
}
}
In my CNI style C++ file, I have the following code that attempts to
access b->getSize() through a, which is an instance of A
#include <A.h> // line number 3
A$B *tmp = (A$B*)a.getB; // line number 180
jint size = tmp->getSize(); // line number 181
When I compile with gcj, I get the following error:
Test.cpp:181: error: invalid use of undefined type 'A$B'
As you can see, the compiler didn't have a problem with line 180 where I
got the instance b of class B. The problem
came when I tried to use the instance of b. I assume this is because
there is no A$B header file. I tried to produce the
A$B.h file, but gcjh only produced the A.h file even when I ran
gcjh A$B.
Any ideas?
You guys make good stuff!
Thanks!
Phil
next reply other threads:[~2004-04-27 15:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-27 15:24 Plapp, Phillip [this message]
[not found] <200901181717.n0IHHMOM028799@smtp.google.com>
2009-01-20 1:06 ` gcj Ian Lance Taylor
-- strict thread matches above, loose matches on Subject: below --
2009-01-18 17:17 gcj Franklyn Simon
2009-01-18 17:17 gcj Franklyn Simon
2004-04-23 15:45 gcj bserdar
2004-04-23 15:37 gcj Plapp, Phillip
1999-11-23 5:47 gcj Ashwin Kapur
1999-11-23 5:43 ` gcj Eric Doenges
1999-11-30 23:28 ` gcj Eric Doenges
1999-11-30 23:28 ` gcj Ashwin Kapur
1999-10-27 21:31 gcj Chris Majewski
1999-10-27 21:52 ` gcj Anthony Green
1999-10-31 13:57 ` gcj Anthony Green
1999-10-31 13:57 ` gcj Chris Majewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=242175EA3C8D3045B8D77EE70A063DB50295F211@bbnexc02.emea.cpqcorp.net \
--to=phillip.plapp@hp.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).