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

javac fails to diagnose too many array dimensions

    XMLWordPrintable

Details

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

    Description

      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()
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][]
              [][][][][][][][][][][][][][][][];
      }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: