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

Compiler confused about explicit type args and arrays

    XMLWordPrintable

Details

    • b03
    • generic
    • generic
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: