Re: TreeMap in JDK15 deviates from spec

2021-01-13 Thread Stuart Marks
Thanks for filing this! Tagir Valeev picked this up and has filed a PR: https://git.openjdk.java.net/jdk/pull/2058 s'marks On 1/11/21 10:05 AM, Phil Smith wrote: Hello, I submitted bug report 9068554 recently, but I consider this a pretty big issue and I'd like for this not to get lost in tr

Re: TreeMap in JDK15 deviates from spec

2021-01-11 Thread Rob Spoor
This is a regression, because Java 11 shows "default" twice for the TreeMap, whereas Java 15 shows "null" twice. On 11/01/2021 19:05, Phil Smith wrote: Hello, I submitted bug report 9068554 recently, but I consider this a pretty big issue and I'd like for this not to get lost in triage. With

TreeMap in JDK15 deviates from spec

2021-01-11 Thread Phil Smith
Hello, I submitted bug report 9068554 recently, but I consider this a pretty big issue and I'd like for this not to get lost in triage. With JDK-8176894, a specialized implementation for computeIfAbsent was added to TreeMap, however it doesn't handle null values correctly. Spec states a mapping to