Big AWT patch.

From-SVN: r34976
This commit is contained in:
Bryce McKinlay 2000-07-12 03:32:07 +00:00 committed by Bryce McKinlay
parent 406a65d0db
commit c7a136d3ef
70 changed files with 4838 additions and 277 deletions

View file

@ -28,6 +28,12 @@ public abstract class ResourceBundle
public ResourceBundle ()
{
}
public Locale getLocale()
{
// FIXME: Stub added for this missing method because it is needed for AWT.
return null;
}
public final String getString (String key) throws MissingResourceException
{
@ -110,9 +116,14 @@ public abstract class ResourceBundle
// Look for a properties file.
{
String prop_name = (bundleName.replace('.', '/') + ".properties");
System.out.println ("trying '" + prop_name + "' for '" + bundleName);
InputStream i = ClassLoader.getSystemResourceAsStream (prop_name);
/*
InputStream i =
ClassLoader.getSystemResourceAsStream (bundleName.replace ('.', '/')
+ ".properties");
*/
if (i != null)
{
try {