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

javac fails to diagnose too many array dimensions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.0
    • tools
    • mantis
    • generic
    • solaris_8

      javac should reject the following because it violates the JVM limit on the number of dimensions in an array

      abstract class T {
          abstract int
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              f()
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][];
      }

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: