javac fails to diagnose too many array dimensions

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.2
    • Affects Version/s: 1.4.0
    • Component/s: 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()
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][];
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: