-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Currently UIDefaultsWithResourceBundleCache uses a copy of the resources, so it might go out of date with JDK.
Have you considered using delegation instead?
In other words, something like
public class DelegatingUIDefaults extends UIDefaults {
private final UIDefaults base; // or an array
public DelegatingUIDefaults(UIDefaults base) {
this.base = base;
}
@Override
public Object get(Object key, Locale l) {
Object value = super.get(key, l); // try searching locally first
if (value != null) {
return value;
}
return base.get(key, l); // delegate if missing
}Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working