Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255440

More specifics for function-consuming Map methods

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      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.


        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: