public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/15133] New: gcjh generates wrong method signatures
@ 2004-04-25 15:42 konqueror at gmx dot de
  2004-04-25 15:43 ` [Bug java/15133] " konqueror at gmx dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: konqueror at gmx dot de @ 2004-04-25 15:42 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-04-30 18:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-25 15:42 [Bug java/15133] New: gcjh generates wrong method signatures konqueror at gmx dot de
2004-04-25 15:43 ` [Bug java/15133] " konqueror at gmx dot de
2004-04-25 15:54 ` konqueror at gmx dot de
2004-04-25 16:33 ` pinskia at gcc dot gnu dot org
2004-04-27 10:25 ` rmathew at gcc dot gnu dot org
2004-04-27 11:52 ` rmathew at gcc dot gnu dot org
2004-04-30 18:14 ` cvs-commit at gcc dot gnu dot org
2004-04-30 18:57 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).