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

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.1_13
    • 1.3.1_11
    • hotspot
    • None
    • 13
    • sparc
    • solaris_8

      The product is IAS 6.5 sp1 mu4 and turn off dynamic re-loading.
      jdk : 1.3.1_11-b02
      Java flag include -XX:+PrintCompilation

      Sample jsp code
      -----------------
      <%@ page contentType="text/html; charset=utf-8" %>
      <%
      for (int i = 0; i < 1000; i++) {
          int dataCount = 0;
          java.util.List dataList = new java.util.ArrayList();
          dataCount = dataList.size();

          if (dataCount > 0) {
              Object tmp = new String[dataCount][2];
          }

          for (int k = 0; k < dataCount; k++) {
              dataList.get(k);
          }
      }
      %>

       When the jsp is compiled, load and run for the first time, the indexOutOfBoundsException is thrown
       Running the same piece of code in Tomcat, work well.

      ###@###.### 2004-04-13

            poonam Poonam Bajaj Parhar
            cphua Choon-Hong Phua (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: