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

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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: