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

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);
          }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: