This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: adapt InvokeReturn test for reflectionless targets
- From: Anthony Green <green at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: 21 Mar 2002 11:53:23 -0800
- Subject: Patch: adapt InvokeReturn test for reflectionless targets
This patches adapts the InvokeReturn test for targets with no
reflection support (no libffi yet).
Ok for branch and trunk?
AG
2002-03-21 Anthony Green <green@redhat.com>
* libjava.lang/InvokeReturn.java: Modify test for targets
which do not yet support reflection.
Index: libjava/testsuite/libjava.lang/InvokeReturn.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.lang/InvokeReturn.java,v
retrieving revision 1.1
diff -u -p -r1.1 InvokeReturn.java
--- InvokeReturn.java 2002/02/24 06:45:19 1.1
+++ InvokeReturn.java 2002/03/21 19:36:39
@@ -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();
}