Initial revision
From-SVN: r26263
This commit is contained in:
parent
140fa895c6
commit
ee9dd3721b
370 changed files with 173494 additions and 0 deletions
25
libjava/testsuite/libjava.lang/Throw_1.java
Normal file
25
libjava/testsuite/libjava.lang/Throw_1.java
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Some tests of `throw'.
|
||||
|
||||
public class Throw_1
|
||||
{
|
||||
public static Throwable get ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main (String[] args)
|
||||
{
|
||||
Throwable t = get ();
|
||||
try
|
||||
{
|
||||
throw t;
|
||||
}
|
||||
catch (NullPointerException y)
|
||||
{
|
||||
}
|
||||
catch (Throwable x)
|
||||
{
|
||||
System.out.println ("no");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue