improper handling of lub type for arrays, classes

XMLWordPrintable

    • generic
    • solaris_8

      javac improperly rejects the following:

      class Z {
          static <T> T f(T a, T b) {
              return a;
          }
          static Cloneable main(Cloneable a, float[] b) {
              return f(a, b);
          }
      }

            Assignee:
            Peter Ahe
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: