icu
icu copied to clipboard
ICU-23291 prevent icu4j stack overflow when a resource file is missing during ULocale initialization
Fixes ICU-23291. Issue found while testing #3795.
@markusicu , WDYT?
@eranl This PR has been quiet since 2026-02-06, so I have picked the fix up in #4341 — a minimal recursion guard in ICUResourceBundle.load() with a fail-before/pass-after JUnit regression test and a reproduction, rebased onto current main. It is the same root cause and fix semantics as here, plus the unit test and reproduction narrative @richgillam asked for in review. Happy to drop #4341 if you plan to continue here.
@itsgaldoron, feel free. It doesn't look like this PR is going anywhere.