Patch: adapt InvokeReturn test for reflectionless targets
Anthony Green
green@redhat.com
Thu Mar 21 11:59:00 GMT 2002
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();
}
More information about the Java-patches
mailing list