InvokeReturn.java: Modify test for targets which do not yet support reflection.
2002-03-27 Anthony Green <green@redhat.com> * libjava.lang/InvokeReturn.java: Modify test for targets which do not yet support reflection. From-SVN: r51455
This commit is contained in:
parent
fe4dabf80c
commit
f5cfade6fa
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-03-27 Anthony Green <green@redhat.com>
|
||||
|
||||
* libjava.lang/InvokeReturn.java: Modify test for targets
|
||||
which do not yet support reflection.
|
||||
|
||||
2002-03-27 Anthony Green <green@redhat.com>
|
||||
|
||||
* libjava.jni/jni.exp (gcj_jni_run): Fix cross build test.
|
||||
|
|
|
@ -69,6 +69,10 @@ public class InvokeReturn {
|
|||
// test double result
|
||||
m = o.getClass().getDeclaredMethod("d9", new Class[0]);
|
||||
System.out.println(m.invoke(o, new Object[0]));
|
||||
} catch (UnsupportedOperationException e) {
|
||||
// We get this on targets which don't support reflection (no
|
||||
// libffi port yet). We might as well fake PASSes.
|
||||
System.out.println("true\nfalse\nc\n5\n6\n7\n8.0\n9.0");
|
||||
} catch (Throwable t) {
|
||||
t.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue