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

Move Objects.checkIndex BiFunction accepting methods to an internal package

    Details

    • Subcomponent:
    • Resolved In Build:
      b120
    • Verification:
      Verified

      Backports

        Description

        Internal CCC review recommended that the Objects.checkIndex supporting exception customization be either removed or moved internally on the premise of "Your Not Gonna Need It".

        Code in the JDK switching to these methods arguably needs the advanced functionality to preserve exception types and their messages (some of the functionality is required regardless to produce clear exception messages for the all the check methods with the default IndexOutOfBoundsException).

        The expedient approach here is to move internally and revisit.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  psandoz Paul Sandoz
                  Reporter:
                  psandoz Paul Sandoz
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: