Bug #988

Wrong variable use in Skin.loadBundles [Peter Fassev]

Added by Old User almost 13 years ago. Updated 30 days ago.

Status:Nouveau Start date:
Priority:Medium Due date:
Assignee:Old User % Done:

0%

Category:-
Target version:-

Description

[Peter Fassev]
Please look at the implementation of the method Skin.loadBundles(). It uses
the static variable "Skin.resourcesName", instead of the "in_name" parameter of the method.

Thus the Skin Constructor can't load the default resource bundle, when the resourceName is changed:

private Skin(String in_name, String in_locale) {
// Create a fake locale.
locale = new Locale(in_name, in_locale);
try {
resources = loadBundles(resourcesName, locale, this);
defaultResources = loadBundles("Struts-Layout", null, this);

....
With best regards
Peter

History

Updated by William Lampkin 30 days ago

In this article, you share your experience about the adventure. I realize each nation is not the same as the other nation. Individuals talk their local dialect with assignment writing uk and I can comprehend your vibe out of the blue. This is so imaginative article.

Also available in: Atom PDF