This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libgcj/4439: CNI: would be nice to be able to create Java array with 'new'
- To: Jeff Sturm <jsturm at one-point dot com>
- Subject: Re: libgcj/4439: CNI: would be nice to be able to create Java array with 'new'
- From: Tom Tromey <tromey at redhat dot com>
- Date: 05 Oct 2001 11:39:59 -0600
- Cc: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>, Ashley Yakeley <ashley at semantic dot org>, bryce at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, java-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- References: <Pine.LNX.4.10.10110031219001.18628-100000@mars.deadcafe.org>
- Reply-To: tromey at redhat dot com
>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:
Bryce> Tom, can we avoid including gcj/javaprims.h from jni.h?
Tom> I don't think it would be very easy :-(
Jeff> Why is that?
Actually it may be easier than I thought.
Jeff> jni.h must be useable with any good C/C++ compiler.
My concern was that jni.cc uses things like `jint' and `jobject',
which in that case must have the same definitions as the rest of
libgcj. But that isn't a big problem -- we can have jni.h use
javaprims.h when used with g++.
The only remaining tricky part is getting the right typedefs into
jni.h. This means either jni.h or some other header must be
platform-dependent. This is a minor pain. (Right now we already have
a problem here, I think, but we just ignore it...)
Tom