On Wed, 17 Aug 2022 08:55:58 GMT, Thomas Stuefe <stu...@openjdk.org> wrote:

> I'm confused. How does adding EnsureCapacity in newString646_US fix the 
> compiler warning mentioned in JBS?

I think this is a bona-fide compiler static analyzer bug. GCC 12 compiles this 
code fine. So, we have two options: a) disable the warnings for this code 
block; b) harmonize all code blocks to use the same style, which is also 
incidentally avoids the false warning. This PR does (b).

-------------

PR: https://git.openjdk.org/jdk/pull/9702

Reply via email to