+2005-04-29 Mark Wielaard <mark@klomp.org>
+
+ * java/util/ResourceBundle.java (getObject): Clarify
+ MissingResourceException detailed message.
+ (tryBundle(String,ClassLoader)): Likewise.
+
2005-04-29 Robert Schuster <thebohemian@gmx.net>
* java/beans/FeatureDescriptor.java:
/* ResourceBundle -- aids in loading resource bundles
- Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004
+ Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GNU Classpath.
import java.io.IOException;
import java.io.InputStream;
-import java.lang.ref.Reference;
-import java.lang.ref.SoftReference;
/**
* A resource bundle contains locale-specific data. If you need localized
if (o != null)
return o;
}
-
- throw new MissingResourceException("Key not found", getClass().getName(),
- key);
+
+ String className = getClass().getName();
+ throw new MissingResourceException("Key '" + key
+ + "'not found in Bundle: "
+ + className, className, key);
}
/**
catch (IOException ex)
{
MissingResourceException mre = new MissingResourceException
- ("Failed to load bundle", localizedName, "");
+ ("Failed to load bundle: " + localizedName, localizedName, "");
mre.initCause(ex);
throw mre;
}