This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


* 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++.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]