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

Validation missing for LineNumber::of() and throws undocumented AIOOB Execption.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 25
    • core-libs
    • None

      LineNumber.of(-1) and LineNumber.of(Integer.MAX_VALUE + 1) throws "java.lang.ArrayIndexOutOfBoundsException: Index -20000000 out of bounds for length 1000"
      This exception is not documented.

            liach Chen Liang
            pchinnasamy Prabushankar Chinnasamy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: