Problem with least upper bound (lub) and type variables

XMLWordPrintable

    • 5.0
    • 5.0
    • b06
    • generic
    • solaris_8
    • Verified

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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: