This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: error: 'jvariant::jvariant(jbyte)' cannot be overloaded
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Mathieu Malaterre <mathieu dot malaterre at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sun, 19 Jul 2009 08:02:05 +0200
- Subject: Re: error: 'jvariant::jvariant(jbyte)' cannot be overloaded
- References: <bf0c3b3f0907160537g2b52ccf8ydd39df0d2ae54e3c@mail.gmail.com>
* 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.