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

new array syntax not allowed in parameter list.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.0
    • 1.0
    • tools
    • 1.0beta
    • sparc
    • solaris_2.4
    • Not verified

      The compiler allows a new array syntax, with []s before
      the identifier, in declarations. But not in parameter lists.
      It should allow them in parameter lists, too.
      The alpha3 compiler gives this message, for example:
      arrayHierarchy.java:20: Identifier expected.
      public static void main ( String[] x ) {
      ^
      1 error
      ganymede% which javac
      /usr/local/java/1.0a3/bin/javac

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: