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

Integration of JEP 417: Vector API (Third Incubator)

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P4
    • 18
    • hotspot
    • None
    • behavioral
    • minimal
    • Java API
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: