[Brian Jones]
> That's pretty wild... that Java2 javah would break the build.
> Haven't tried it though. Could you send the errors from make when
> using javah from 1.2.2?
I ran into similar problems. I'm using JDK 1.2, and had to increase
the max heap value to javac to get it to compile. I then used javah
to generate the header files, and it seems like the headers are
generated based on the JDK classes, not Classpath.
The generated header for Java_java_io_FileInputStream_open do not
match the implementation. From java_io_FileInputStream.h:
JNIEXPORT void JNICALL Java_java_io_FileInputStream_open
(JNIEnv *, jobject, jstring);
from FileInputStream.c:
JNIEXPORT jint JNICALL
Java_java_io_FileInputStream_open(JNIEnv *env, jobject obj, jstring name)
The return value is different. The same thing happends with
FileOutputStream. As far as I can see from the documentation, this
function is not a public function in JDK. Is this difference
intentional?
While compiling, I rad across this error:
Index: java_io_ObjectInputStream.c
===================================================================
RCS file: /cvs/classpath/native/java.io/java_io_ObjectInputStream.c,v
retrieving revision 1.7
diff -u -w -r1.7 java_io_ObjectInputStream.c
--- java_io_ObjectInputStream.c 2000/03/17 20:59:11 1.7
+++ java_io_ObjectInputStream.c 2000/06/20 03:40:18
@@ -43,9 +43,10 @@
"()Ljava/lang/ClassLoader;" );
if( id == NULL )
- return;
+ return 0;
(*env)->CallObjectMethod( env, loader, id );
+ return loader; /* XXX Not quite sure what should be returned here. */
}
The function have return type jobject, but did not return anything.
BTW: The classpath/javax/ subdirectory is missing / empty. Is this
normal?
--
##> Petter Reinholdtsen <## | [EMAIL PROTECTED]