invokethrow.out: New file.
* libjava.lang/invokethrow.out: New file. * libjava.lang/invokethrow.java: New file. From-SVN: r42711
This commit is contained in:
parent
bdd42dd9a5
commit
1de16a5cb1
@ -1,3 +1,8 @@
|
||||
2001-05-30 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* libjava.lang/invokethrow.out: New file.
|
||||
* libjava.lang/invokethrow.java: New file.
|
||||
|
||||
2001-05-03 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* libjava.lang/Thread_Wait_Interrupt.xfail: New file.
|
||||
|
29
libjava/testsuite/libjava.lang/invokethrow.java
Normal file
29
libjava/testsuite/libjava.lang/invokethrow.java
Normal file
@ -0,0 +1,29 @@
|
||||
// Test a `throw' across a libffi call.
|
||||
|
||||
import java.lang.reflect.*;
|
||||
|
||||
public class invokethrow
|
||||
{
|
||||
public static void doit () throws Throwable
|
||||
{
|
||||
throw new Throwable ("hi!");
|
||||
}
|
||||
|
||||
public static void main (String[] args)
|
||||
{
|
||||
Class k = invokethrow.class;
|
||||
try
|
||||
{
|
||||
Class[] noargs = new Class[0];
|
||||
Method m = k.getMethod ("doit", noargs);
|
||||
m.invoke (null, null);
|
||||
}
|
||||
catch (InvocationTargetException x1)
|
||||
{
|
||||
System.out.println (x1.getTargetException ().getMessage ());
|
||||
}
|
||||
catch (Throwable _)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.lang/invokethrow.out
Normal file
1
libjava/testsuite/libjava.lang/invokethrow.out
Normal file
@ -0,0 +1 @@
|
||||
hi!
|
Loading…
Reference in New Issue
Block a user