blob: 75588d6fbdd377d8a7da38b122a5cde0ba4e7784 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import java.lang.*;
public class NullcastTest
{
static String retString(String str1, String str2)
{
return str1;
}
public static void main (String args[]) {
try {
String tmp = retString((String) null, (String)null);
System.out.println("PASSED: (String)null");
System.exit(0);
} catch (Exception e) {
System.out.println("FAILED: "+e);
}
}
}
|