Hi,
Thomas Fitzsimmons wrote:
[...]
> +public class JPEGImageWriteParam
> + extends ImageWriteParam
> +{
> +
> + /**
> + * Localized messages are stored in separate files.
> + */
> + private static ResourceBundle messages;
> +
[...]
> + * @param locale the locale used for message localization
> + */
> + public JPEGImageWriteParam(Locale locale)
> + {
> + super(locale);
> +
> + // Get localized compression type and compression quality
> + // description strings for the given locale.
> + messages = PropertyResourceBundle.getBundle
> + ("javax/imageio/plugins/jpeg/MessagesBundle", locale);
As the messages variable is static a subsequent object construction
with a different locale will change the messages of other instances.
I think messages should be an instance variable here ?
Wolfgang