Re: Proposal for CNI/JNI problems

2000-01-12 Thread Aaron M. Renn
Paul Fisher ([EMAIL PROTECTED]) wrote: > > (1) Is it OK to write Classpath in C++ rather than C? > > Yes. > > > (2) Is it OK for Classpath to depend on G++ extensions? > > Yes. I think this should be considered very carefully. I would like to avoid these dependencies if possible. Particularl

Re: Proposal for CNI/JNI problems

2000-01-12 Thread Per Bothner
Paul Fisher <[EMAIL PROTECTED]> writes: > This sounds like a good solution, and it's certainly better than the > pure-C++ solution that I was working on. > > Do you, or anyone else in the gcc/gcj camp, have time to work on such > a feature? I don't think I have time to actually do the work. I

Re: Proposal for CNI/JNI problems

2000-01-12 Thread Paul Fisher
Per Bothner <[EMAIL PROTECTED]> writes: > The first question is why? What is the goal? The goal is for Classpath to be the "standard" set of Java class libraries for the majority of free JVMs. Or at least, with a reasonable amount of effort, a VM should be able to support Classpath. Therefore,

Re: Proposal for CNI/JNI problems

2000-01-12 Thread Per Bothner
"Jochen Hoenicke" <[EMAIL PROTECTED]> writes: > But when I converted the java.util.zip classes, there were some > issues that a compiler can't solve: > > CNI has the method "elements" to access the elements of an array. It doesn't have to be an all-or-nothing solution. For something like Relea

Re: Proposal for CNI/JNI problems

2000-01-12 Thread Artur Biesiadowski
Per Bothner wrote: > For example, let is call this option -femit-jni. First, note that > G++ already has the concept that certain classes have the "Java > property". (In practice, thes are the classes that inherit from > java::lang::Object.) If the compiler sees a field reference > VAL

Re: Proposal for CNI/JNI problems

2000-01-12 Thread Jon Olson
On Wed, 12 Jan 2000, Jochen Hoenicke wrote: >Another point is how to put pointers to native structures into a >classfile. Sun didn't solve it well. If I understand the code in >japhar's java/util/zip correctly sun used an int field to store the >pointer and later changed it to long to support 6

Re: Proposal for CNI/JNI problems

2000-01-12 Thread Jochen Hoenicke
On Jan 11, Per Bothner wrote: > Paul Fisher <[EMAIL PROTECTED]> writes: > > > While it's important that Classpath continue to support JNI, > > The first question is why? What is the goal? Presumably, the > goal is that Classpath can be used as the standard Java library > for non-Gcj JVMs. Ye