-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
ADDITIONAL SYSTEM INFORMATION :
All java documentaion, but noticed on Java 11 and al proior once.
A DESCRIPTION OF THE PROBLEM :
Please provide more specifics on ConcurrentHashMap merge method as well as any other methods that accept BiFunctions what would be passed to those functions as parameters (not just types). It is confusing and guess work if there is old value and new value passed of the same type. We cannot guess how they are passed in order of parameters. BiFunction interface is too generic to make that guess work if two arguments will be of the same type. Even if they are different type sometimes it is hard to guess. Generic programming does not release from resposibility to be specific in documentation.
All java documentaion, but noticed on Java 11 and al proior once.
A DESCRIPTION OF THE PROBLEM :
Please provide more specifics on ConcurrentHashMap merge method as well as any other methods that accept BiFunctions what would be passed to those functions as parameters (not just types). It is confusing and guess work if there is old value and new value passed of the same type. We cannot guess how they are passed in order of parameters. BiFunction interface is too generic to make that guess work if two arguments will be of the same type. Even if they are different type sometimes it is hard to guess. Generic programming does not release from resposibility to be specific in documentation.