(reflect) retrofit Array.newInstance by using generics

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 5.0
    • Component/s: core-libs
    • None

      I think the following signature:

          public static <T> T[] Array.newInstance(Class<T> componentType, int length)

      is more type safe than the current one:

          public static Object Array.newInstance(Class<?> componentType, int length)

      Is there any reason we can't do this?
      ###@###.### 2004-09-14

            Assignee:
            Peter Ahe
            Reporter:
            Kohsuke Kawaguchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: