repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
libjava
/
testsuite
/
libjava.lang
/
Invoke_1.java
blob
bc4678301ce76f25554ae2df30cbf1589df0c6bd
1
// Test of failing method invocation.
2
3
public class
Invoke_1
4
{
5
public void
call_me
()
6
{
7
System
.
out
.
println
(
"no"
);
8
}
9
10
public static
Invoke_1
get_i
()
11
{
12
return
null
;
13
}
14
15
public static void
main
(
String
[]
args
)
16
{
17
Invoke_1 i
=
get_i
();
18
try
19
{
20
i
.
call_me
();
21
}
22
catch
(
NullPointerException ok
)
23
{
24
System
.
out
.
println
(
"ok"
);
25
}
26
}
27
}