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

Compiler confused about explicit type args and arrays

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        This silly program compiles:

        public class GenericArraysNowSupported {
         public static void main (String[] args) {
           Object[] foo = new <HowdyDoody>Object[123];
         }
        }

        This should have been caught by the parser.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ahe Peter Ahe
                Reporter:
                ahe Peter Ahe
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: