This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/15133] New: gcjh generates wrong method signatures
- From: "konqueror at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Apr 2004 15:42:39 -0000
- Subject: [Bug java/15133] New: gcjh generates wrong method signatures
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcjh generates wrong method signatures for overloaded native methods. I have
found two instances of it in GNU classpath:
In gnu.java.net.PlainSocketImpl:
extern JNIEXPORT void JNICALL
Java_gnu_java_net_PlainSocketImpl_connect__Ljava_net_InetAddress_2I (JNIEnv
*env, jobject, jobject, jint);
should be:
extern JNIEXPORT void JNICALL
Java_gnu_java_net_PlainSocketImpl_connect(JNIEnv*, jobject, jobject, jint);
In java.nio.DirectByteBufferImpl:
extern JNIEXPORT void JNICALL
Java_java_nio_DirectByteBufferImpl_shiftDown__Lgnu_classpath_RawData_2III
(JNIEnv *env, jclass, jobject, jint, jint, jint);
should be:
extern JNIEXPORT void JNICALL Java_java_nio_DirectByteBufferImpl_shiftDown
(JNIEnv *env, jclass, jobject, jint, jint, jint);
This only happens with overloaded methods. When I rename the native methods to
some name that doesnt exist in this class yet it works.
--
Summary: gcjh generates wrong method signatures
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: konqueror at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15133