Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6336

[drlvm][jit] ArrayIndexOutOfBoundsException thrown without index information; generally AIOBE is thrown without specifiying the index.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.0M11
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None

      Description

      Following code:

      public static void main(String[] arg) throws Exception {
      int a[] =

      {1,2,3}

      ;
      a[3] = 4;
      }

      Generates
      java.lang.ArrayIndexOutOfBoundsException
      in Harmony but
      java.lang.ArrayIndexOutOfBoundsException 3
      with Sun Java 1.4

      A quick search of the class library shows that ArrayIndexOutOfBoundsException is frequently called without providing the index.

      This makes debugging index problems very much harder that it ought to be.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: