java.util.ResourceBundle instance cannot be the parent of itself otherwise 'containsKey' fails into infinite loop

GitOrigin-RevId: 72fa5a7f9094009a9474d0680f8da97627a1e929
This commit is contained in:
Dmitriy.Panov
2021-06-29 14:49:09 +00:00
committed by intellij-monorepo-bot
parent 916687f551
commit 4d2f883621

View File

@@ -48,7 +48,7 @@ public class DynamicBundle extends AbstractBundle {
ResourceBundle pluginBundle = super.findBundle(pathToBundle, pluginDescriptor == null ? getClass().getClassLoader() : pluginDescriptor.getPluginClassLoader(), control);
if (pluginBundle != null) {
try {
if (DynamicBundleInternal.SET_PARENT != null) {
if (DynamicBundleInternal.SET_PARENT != null && pluginBundle != base) {
DynamicBundleInternal.SET_PARENT.bindTo(pluginBundle).invoke(base);
}
return pluginBundle;