JDK 10 RFR of 8176894: Provide specialized implementation for default methods putIfAbsent, computeIfAbsent, computeIfPresent, compute in TreeMap
Sergey Kuksenko
sergey.kuksenko at oracle.com
Fri Mar 17 15:21:50 UTC 2017
But existing (default) implementation doesn't check modCount as well. I
just preserve existing functionality.
On 03/17/2017 07:33 AM, Tagir F. Valeev wrote:
> Hello!
>
> Great and long-awaited feature, thanks!
>
> I don't see that modCount is checked after calling mappingFunction in
> compute/computeIfAbsent/computeIfPresent. Is it possible to break the
> Map if mappingFunction changes the Map content? See similar problems
> in HashMap:
> https://bugs.openjdk.java.net/browse/JDK-8071667
> https://bugs.openjdk.java.net/browse/JDK-8172951
>
> With best regards,
> Tagir Valeev.
>
>
> SK> Hi All,
>
> SK> Please, review:
> SK> https://bugs.openjdk.java.net/browse/JDK-8176894
> SK> http://cr.openjdk.java.net/~skuksenko/corelibs/utils/8176894/webrev.00/
>
> SK> The issue was created for JDK10 in order to don't disturb JDK9 before
> SK> launch.
>
--
Best regards,
Sergey Kuksenko
More information about the core-libs-dev
mailing list