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

incorrect inference for result of lub(int[], float[])

XMLWordPrintable

    • b65
    • generic, x86, sparc
    • generic, linux, solaris_8, solaris_9, windows_xp
    • Verified

        The following program is improperly accepted by javac.

        class Z {
            static <T> T f(T a, T b) {
                return a;
            }
            static Object[] main(int[] 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: