diff options
| author | Tom Tromey <tromey@gcc.gnu.org> | 1999-04-07 14:42:40 +0000 |
|---|---|---|
| committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-04-07 14:42:40 +0000 |
| commit | ee9dd3721be68b9fa63dea9aa5a1d86e66958cde (patch) | |
| tree | d96801a16fdf03a5682ef98730fe333a46eef944 /libjava/testsuite/libjava.lang/Invoke_1.java | |
| parent | 140fa895c6b859f827fc4437b91775a82cd105fb (diff) | |
Initial revision
From-SVN: r26263
Diffstat (limited to 'libjava/testsuite/libjava.lang/Invoke_1.java')
| -rw-r--r-- | libjava/testsuite/libjava.lang/Invoke_1.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/Invoke_1.java b/libjava/testsuite/libjava.lang/Invoke_1.java new file mode 100644 index 00000000000..bc4678301ce --- /dev/null +++ b/libjava/testsuite/libjava.lang/Invoke_1.java @@ -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"); + } + } +} |
