re PR java/9577 (Linker error for legal Java/CNI code if method parameters are reversed)
2003-09-17 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. From-SVN: r71460
This commit is contained in:
parent
a28400bb6c
commit
25a017631e
@ -1,3 +1,10 @@
|
||||
2003-09-17 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.
|
||||
|
||||
2003-09-04 Jeff Sturm <jsturm@one-point.com>
|
||||
|
||||
* libjava.compile/compile.exp: Test with -O3 rather than -O.
|
||||
|
14
libjava/testsuite/libjava.cni/PR9577.java
Normal file
14
libjava/testsuite/libjava.cni/PR9577.java
Normal file
@ -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);
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.cni/PR9577.out
Normal file
1
libjava/testsuite/libjava.cni/PR9577.out
Normal file
@ -0,0 +1 @@
|
||||
Hello!
|
9
libjava/testsuite/libjava.cni/natPR9577.cc
Normal file
9
libjava/testsuite/libjava.cni/natPR9577.cc
Normal file
@ -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");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user