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

Integration of JEP 417: Vector API (Third Incubator)

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Interface Kind:
      Java API
    • Scope:
      JDK

      Description

      Summary and Problem

      The method jdk.incubator.vector.VectorMask.laneIsSet does not specify that an exception is thrown if the given lane index is out of bounds.

      Solution

      Update VectorMask.laneIsSet to specify IndexOutOfBoundsException is thrown if a given lane index is out of bounds.

      Specification

      VectorMask.laneIsSet is updated to:

      /**
       * Tests if the lane at index {@code i} is set
       * @param i the lane index
       *
       * @return true if the lane at index {@code i} is set, otherwise false
       * @throws IndexOutOfBoundsException if the index is out of range
       * ({@code < 0 || >= length()})
       */
      public abstract boolean laneIsSet(int i);

      The changes are:

            * @param i the lane index
            *
            * @return true if the lane at index {@code i} is set, otherwise false
      +     * @throws IndexOutOfBoundsException if the index is out of range
      +     * ({@code < 0 || >= length()})
            */
           public abstract boolean laneIsSet(int i);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psandoz Paul Sandoz
              Reporter:
              psandoz Paul Sandoz
              Reviewed By:
              Sandhya Viswanathan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: