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

Problem with least upper bound (lub) and type variables

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      5.0
    • Introduced In Version:
      5.0
    • Resolved In Build:
      b06
    • CPU:
      generic
    • OS:
      solaris_8
    • Verification:
      Verified

      Backports

        Description

        javac rejects the following code.

        class X {
            <T, U extends T, V extends T> T cond1(boolean z, U x1, V x2) {
                return (z? x1: x2);
            }
        }

          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: