Re: ConcurrentMap::compute clarification

2015-12-09 Thread Jaromir Hamala
ulls are not supported), so things are just left alone. > > Do you wanna report the issue here: > > http://bugreport.java.com/ > > Thanks, > Paul. > > > On 8 Dec 2015, at 11:12, Jaromir Hamala > wrote: > > > > Hi, > > > > I stu

ConcurrentMap::compute clarification

2015-12-08 Thread Jaromir Hamala
Hi, I stumbled upon an interesting issue with default implementation of `compute(K key, BiFunction remappingFunction)` in JDK8 `ConcurrentMap`. According to its contract the default method implementation assumes map implementations do not support null values. This is the begin of the default impl