mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-26 13:25:52 +00:00
Initial revision
From-SVN: r102074
This commit is contained in:
@@ -0,0 +1,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user