Initial revision
From-SVN: r26263
This commit is contained in:
parent
140fa895c6
commit
ee9dd3721b
370 changed files with 173494 additions and 0 deletions
27
libjava/testsuite/libjava.lang/Invoke_1.java
Normal file
27
libjava/testsuite/libjava.lang/Invoke_1.java
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Test of failing method invocation.
|
||||
|
||||
public class Invoke_1
|
||||
{
|
||||
public void call_me ()
|
||||
{
|
||||
System.out.println ("no");
|
||||
}
|
||||
|
||||
public static Invoke_1 get_i ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main (String[] args)
|
||||
{
|
||||
Invoke_1 i = get_i ();
|
||||
try
|
||||
{
|
||||
i.call_me ();
|
||||
}
|
||||
catch (NullPointerException ok)
|
||||
{
|
||||
System.out.println ("ok");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue