This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug java/15133] New: gcjh generates wrong method signatures


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


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