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


* Mathieu Malaterre:

>   I am trying to compile VTK using gcj and I am getting those compiler
> error, could someone please let me know if the code is legal (should
> compile) or not:

This is legal per Sun's JNI specficiation: jboolean and jbyte are
distinct types because there signedness differs:

<http://java.sun.com/javase/6/docs/technotes/guides/jni/spec/types.html#wp198>

It's a bug in GCC.


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