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

StringConcatFactory.makeConcat & makeConcatWithConstants should throw StringConcatException if parameter slot count is over 200

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P2
    • 10
    • core-libs
    • None
    • behavioral
    • low
    • Hide
      Expected low compatibility risk. StringConcatFactory::makeConcat and
      makeConcatWithConstant methods are new JDK 9 APIs and primarily
      for compiler to use.
      Show
      Expected low compatibility risk. StringConcatFactory::makeConcat and makeConcatWithConstant methods are new JDK 9 APIs and primarily for compiler to use.
    • Java API
    • SE

    Description

      Summary

      Fix the javadoc for StringConcatFactory.makeConcat and makeConcatWithConstants of a valid concat method type with a maximum of 200 parameter slots.

      Problem

      The spec for StringConcatFactory.makeConcat and makeConcatWithConstants methods incorrectly state that a valid concat method type with a maximum of 200 parameter count. It should be a maximum of 200 parameter slots as it's stated in @apiNote of StringConcatFactory.

      Solution

      Fix the typo "parameter count" to "parameter slots".

      Specification

      The current spec of StringConcatFactory.makeConcat and makeConcatWithConstants states:

      The parameter count in {@code concatType} is less than or equal to 200

      will be changed to:

      The number of parameter slots in {@code concatType} is less than or equal to 200

      Attachments

        Issue Links

          Activity

            People

              mchung Mandy Chung
              pgundarlahal Prashanthram Gundarlahally
              Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: