blob: 5ad5ad60436b7a5c3178bf11b4f9045fb30c90b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import java.util.*;
public class ResourceBundleTest
{
public static void main(String args[])
{
try {
ResourceBundle messageRB =
ResourceBundle.getBundle("sun.tools.javac.resources.javac");
String bundle = (String)messageRB.getObject("main.usage");
if (null == bundle)
throw new Exception("javac.main.usage resource is null");
System.out.println("PASSED: Resource javac.main.usage existed");
} catch (Exception e) {
System.out.println("FAILED: " + e);
}
}
}
|