JNI -vs- stdio.h
Per Bothner
per@bothner.com
Fri Mar 8 13:08:00 GMT 2002
Tom Tromey wrote:
> I just ran across some JNI code that uses NULL but which doesn't
> include stdio.h or any other header that might define it.
>> I notice that Sun's jni.h does include stdio.h.
> I'm reluctant to do this, but I think I will write a patch to change
> ours to include stdio.h as well, for compatibility.
>> Is there any reason not to do this?
There's a *reason* not to do - standard headers should't
randomly include other standard headers. But given this
mistake from Sun, this is an instance where I agree we
should be bug-compatible.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
More information about the Java
mailing list