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

improper handling of lub type for arrays, classes

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      solaris_8

      Description

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ahe Peter Ahe
              Reporter:
              gafter Neal Gafter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: