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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b65
    • CPU:
      generic, x86, sparc
    • OS:
      generic, linux, solaris_8, solaris_9, windows_xp
    • Verification:
      Verified

      Backports

        Description

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

          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: