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

Re: [PATCH] Fix for PR java/9577: Name Mangling Error


Tom Tromey wrote:
> Ranjit> In short, I tested the "before" and "after" scenarios
> Ranjit> with last Thursday's 3.4 snapshot - the test fails to
> Ranjit> link without the patch and PASSes after the patch is
> Ranjit> applied. The patch still applies cleanly to the tree.
> 
> Can you re-send the test case?  It expired from my gnus folder, and it
> doesn't seem to be available in the mailing list archives :-( I'll

Indeed! This is strange.

In any case, I'm attaching it with this message once
again.


> check it in once I get it.

If you check it in as is, without checking in the
corresponding fix, you'll have to XFAIL it and
remove this when the fix is later checked in.

If Andrew is OK with the fix, maybe we can check
in the fix as well before this test case.

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/
Index: ChangeLog
from  Ranjit Mathew  <rmathew@hotmail.com>

	PR java/9577
	* libjava.cni/PR9577.java: New file.
	* libjava.cni/natPR9577.cc: New file.
	* libjava.cni/PR9577.out: New file.

Index: libjava.cni/PR9577.java
===================================================================
--- libjava.cni/PR9577.java	2003-09-10 22:11:35.000000000 +0530
+++ libjava.cni/PR9577.java	2003-09-10 21:41:23.000000000 +0530
@@ -0,0 +1,14 @@
+// Check if a method name is mangled properly in the presence
+// of an array parameter sharing a part of the type name 
+// with a subsequent parameter.
+
+public class PR9577
+{
+  private native void sayHello (String[] s, Object o);
+
+  public static void main (String[] args)
+  {
+    PR9577 x = new PR9577( );
+    x.sayHello( null, null);
+  }
+}
Index: libjava.cni/PR9577.out
===================================================================
--- libjava.cni/PR9577.out	2003-09-10 22:11:35.000000000 +0530
+++ libjava.cni/PR9577.out	2003-09-10 21:47:57.000000000 +0530
@@ -0,0 +1 @@
+Hello!
Index: libjava.cni/natPR9577.cc
===================================================================
--- libjava.cni/natPR9577.cc	2003-09-10 22:11:35.000000000 +0530
+++ libjava.cni/natPR9577.cc	2003-09-10 21:45:55.000000000 +0530
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+#include "PR9577.h"
+
+void
+PR9577::sayHello (JArray< ::java::lang::String *> *x, ::java::lang::Object *y)
+  {
+    printf( "Hello!\n");
+  }

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