Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8151179 address issues raised by JCK team on JEP 274 API
  3. JDK-8152008

asSpreader() & asCollector() WMTE assertions probably not needed

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      MethodHandle.asSpreader() and MethodHandle.asCollector() have the assertion:
      "WrongMethodTypeException - if the implied asType call fails"

      MethodHandle.asType() assertion:
      "WrongMethodTypeException - if the conversion cannot be made"

      Which is probably covered by IllegalArgumentException of asSpreader() and asCollector(). If there are any cases which lead to WrongMethodTypeException thrown by asSpreader() or asCollector(), I will be grateful for them.

            mhaupt Michael Haupt
            kfertikov Kirill Fertikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: