From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10756 invoked by alias); 25 Apr 2004 15:42:40 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 10741 invoked by uid 48); 25 Apr 2004 15:42:39 -0000 Date: Sun, 25 Apr 2004 15:42:00 -0000 From: "konqueror at gmx dot de" To: java-prs@gcc.gnu.org Message-ID: <20040425154237.15133.konqueror@gmx.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/15133] New: gcjh generates wrong method signatures X-Bugzilla-Reason: CC X-SW-Source: 2004-q2/txt/msg00043.txt.bz2 List-Id: 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