Re: Inconsistencies in the return value (type) of string functions toLower() and toUpper().

2022-06-20 Thread Sasi Peri
That is easily done in your code reviews, and the lack of such > wraps is more easily spotted than the == misuse, right? > > > On Sun, Jun 19, 2022 at 10:30 PM Sasi Peri wrote: > >> Hello, >> >> *Issue details* >> >> toLower() and toUpper() return

Re: Inconsistencies in the return value (type) of string functions toLower() and toUpper().

2022-06-19 Thread Sasi Peri
fail and only .equals will work. On Sun, Jun 19, 2022 at 11:29 PM Sasi Peri wrote: > Hello, > > *Issue details* > > toLower() and toUpper() return a new String object sometimes and sometimes > a string literal, based on the input string type (and also sometimes based &g

Inconsistencies in the return value (type) of string functions toLower() and toUpper().

2022-06-19 Thread Sasi Peri
Hello, *Issue details* toLower() and toUpper() return a new String object sometimes and sometimes a string literal, based on the input string type (and also sometimes based on the VM/jdk type) For example - HotSpot VM, If the input is a string literal, which *already* has all “lower cas