error: 'jvariant::jvariant(jbyte)' cannot be overloaded

Florian Weimer fw@deneb.enyo.de
Mon Jul 20 08:28:00 GMT 2009


* Andrew Haley:

>> Right.  I still think it's a bug which should be fixed.  It's also
>> easy to pick up GCC's <jni.h> when compiling for OpenJDK, so it's not
>> just GCJ which is affected by this.
>
> Well, it mostly is, since JNI code is mostly written in C.

Not sure about this.

> I suppose that's why this has never been noticed before.

javah generats an extern "C" wrapper for the prototypes, so you're
still ABI-compatible to the JNI interface even if you use C++.



More information about the Java mailing list