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

compiler allows new int[] without array dimension

XMLWordPrintable

    • 1.0beta
    • sparc
    • solaris_2.4
    • Not verified

      The compiler will compile the following program. Note that the array dimension is missing.

      class Test {
          void foo() {
              int a[] = new int[];
          }
      }

      It chokes on the following:

      class Test {
          int a[] = new int[];
      }


            ahoffsunw Arthur Hoff (Inactive)
            ahoffsunw Arthur Hoff (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: