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

Compiler confused about explicit type args and arrays

XMLWordPrintable

    • b03
    • generic
    • generic
    • Verified

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: